Re: Garbage collector vs variable lifetime

2008-06-06 Thread George Stuart
On Jun 6, 2008, at 7:05 PM, Ricky Sharp wrote: On Jun 6, 2008, at 6:42 PM, Bill Bumgarner wrote: Sorry -- let me clarify. If the was either released in a different thread or if were explicitly released in the above code, then you would see the same crash. I didn't mean to imply t

Re: Using NSSortDescriptor to reverse sort an NSArray containing NSString objects

2008-06-06 Thread George Stuart
On Jun 6, 2008, at 2:26 PM, Andrew Merenbach wrote: Quoting Ken Thomases <[EMAIL PROTECTED]>: On Jun 6, 2008, at 3:43 AM, George Stuart wrote: NSSortDescriptor *desc = [[NSSortDescriptor alloc] initWithKey:nil ascending:NO selector:@selector(localizedCompare:)]; NSArray *sorte

Using NSSortDescriptor to reverse sort an NSArray containing NSString objects

2008-06-06 Thread George Stuart
So I searched through the cocoabuilder.com threads on array sorting to see what had been discussed regarding this topic. My goal is to reverse alphabetically sort an array of NSString objects. I saw a couple suggestions: 1. Categories to add funcationality to NSString and then use the