Fwd: Trying to understand -- please help...

2008-05-21 Thread Jake Carter
Sorry, forgot to cc the group on this. :// Jake -- Forwarded message -- From: Jake Carter <[EMAIL PROTECTED]> Date: Wed, May 21, 2008 at 9:14 AM Subject: Re: Trying to understand -- please help... To: john darnell <[EMAIL PROTECTED]> Ok, I'm somewhat of a beg

Re: @property (readonly, retain) ???

2008-05-06 Thread Jake Carter
As far as I understand it, you can omit the 'retain' if your property is readonly. You are correct that the retain is only for assignments. "Specifies that retain should be invoked on the object upon assignment." From: http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articl

Re: KVO and Object Arrays

2008-04-20 Thread Jake Carter
Murph, Thanks for the info. This is a really great place for me to start. :// Jake On Apr 20, 2008, at 8:56 AM, Sean Murphy wrote: On Apr 20, 2008, at 1:13 AM, Jake Carter wrote: So the AppDelegate will contain an array of Foo object and each Foo object will have an array of Bar objects

KVO and Object Arrays

2008-04-19 Thread Jake Carter
Hey guys, I have a KVO question. First, the setup: Foo NSMutableArray *bars; Bar NSString *name; int number; AppDelegate NSMutableArray *foos; So the AppDelegate will contain an array of Foo object and each Foo object will have an array of Bar objects. I want to be able to obser

Re: Obj-C idioms for list based tasks

2008-04-07 Thread Jake Carter
You may also want to look in to NSPredicate and an arrays 'filteredArrayUsingPredicate:' method. http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSPredicate_Class/Reference/NSPredicate.html http://theocacao.com/document.page/346 http://developer.apple.com/documentati

NSPredicate and Arrays

2008-03-31 Thread Jake Carter
Hey Guys, I'm trying to use NSPredicate to filter an array. Here's the structure of my array ArrayOfFoos: Foo: (Custom Object) Bars: (NSArray *)Bar: (Custom Object) Baz = 1 (int Property on custom object) Bar: Baz = 3 ...