Re: Drawing A Mutable String

2010-01-12 Thread Michael Craig
entiality, if you're trusting enough to send it to me and at liberty > to do so. > > --Andy > > > On Monday, January 11, 2010, at 12:25PM, "Michael Craig" > wrote: > >Andy: There's nothing drawing over it. I can move that chunk of code to > the > >e

Re: Drawing A Mutable String

2010-01-11 Thread Michael Craig
th show up in the console when I printf infoStr, but the invalidStack piece in the middle of the string is left out when infoStr is drawn. Gah! Michael S Craig (908) 328 8030 On Thu, Jan 7, 2010 at 4:18 PM, Fritz Anderson wrote: > On 7 Jan 2010, at 2:29 PM, Michael Craig wrote: > >

Drawing A Mutable String

2010-01-07 Thread Michael Craig
Hi all, This has me completely boggled. I've got a GameController with some BOOL instance variables that it uses to make certain gamestate information available to other objects. I've also got a GameView that looks at those BOOLs and conditionally appends an NSMutableString before it gets drawn. T

Re: NSArray as a class variable

2009-12-25 Thread Michael Craig
Ah, that makes perfect sense. Thank you! Michael S Craig On Sat, Dec 26, 2009 at 12:12 AM, Dave Keck wrote: > Presumably you're not using garbage collection. If that's the case, > suitArray is being deallocated because you didn't retain it. Probably > time to check out the memory management gu

NSArray as a class variable

2009-12-25 Thread Michael Craig
Hi folks, I'm building a class Card that represents a playing card in a simulation. I want instances of Card to be initialized with two integers that represent the suit and value. When an instance of Card is queried for its suit or value, it returns an NSString (@"Club", @"Spade", @"4", @"King", e

Re: Releasing Objects

2009-12-23 Thread Michael Craig
Thanks! I've got a better grip on memory management now. By the way, I'm working with GC turned off, for the sake of learning this stuff. My bad for not including that. Michael S Craig > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > P

Releasing Objects

2009-12-22 Thread Michael Craig
Hi folks, I'm new to Cocoa but I think I have a passable understanding of Obj-C. I'm learning Cocoa for a part of an undergraduate comp-sci independent project. I'm working through the Cocoa Application Tutorial, found here: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/