Re: @dynamic and Programmatic Access to Setters

2008-04-18 Thread Mike Rossetti
Hah! I believe Paul and Jens have identified the problem! Yes, I am using [[Tip alloc] init]. I'll rework that portion of the code and ping back later confirmating the good news. Thanks guys! Mike On Apr 17, 2008, at 11:13 PM, Paul Goracke wrote: [snip] I think the problem is in your cr

Re: @dynamic and Programmatic Access to Setters

2008-04-17 Thread Jens Alfke
I've successfully used @dynamic property implementations with CoreData managed-object subclasses. The only limitation I know of is that it only works with object-valued properties, not scalars. But that's not what you're running into. My guess would be that you're not instantiating the obje

Re: @dynamic and Programmatic Access to Setters

2008-04-17 Thread Paul Goracke
On Apr 17, 2008, at 8:47 PM, Mike Rossetti wrote: Yes, that's my understanding. But according to the comments I mentioned in my earlier message, Core Data provides the implementations. And clearly it does since I can edit, save and restore the document. But you're doing all that via bin

Re: @dynamic and Programmatic Access to Setters

2008-04-17 Thread Quincey Morris
On Apr 17, 2008, at 20:15, Mike Rossetti wrote: Then I add a class method that creates a new Tip and tries the following assignment (two approaches shown): newTip.tipName = @"FUBAR"; [newTip setTipName:@"FUBAR"]; It would be interesting to know if, at the point of the error, the gett

Re: @dynamic and Programmatic Access to Setters

2008-04-17 Thread Mike Rossetti
On Apr 17, 2008, at 10:12 PM, Jack Repenning wrote: On Apr 17, 2008, at 8:47 PM, Mike Rossetti wrote: Yes, that's my understanding. But according to the comments I mentioned in my earlier message, Core Data provides the implementations. And clearly it does since I can edit, save and resto

Re: @dynamic and Programmatic Access to Setters

2008-04-17 Thread Jack Repenning
On Apr 17, 2008, at 8:47 PM, Mike Rossetti wrote: Yes, that's my understanding. But according to the comments I mentioned in my earlier message, Core Data provides the implementations. And clearly it does since I can edit, save and restore the document. I'm just missing the 'magic' that

Re: @dynamic and Programmatic Access to Setters

2008-04-17 Thread Mike Rossetti
Hi Jack, Thanks for the reply! On Apr 17, 2008, at 9:26 PM, Jack Repenning wrote: On Apr 17, 2008, at 8:15 PM, Mike Rossetti wrote: Bindings clearly work so I'm surprised the setTipName isn't synthesized and available for my use. You haven't given us enough info to be sure that tipName work

Re: @dynamic and Programmatic Access to Setters

2008-04-17 Thread Jack Repenning
On Apr 17, 2008, at 8:15 PM, Mike Rossetti wrote: Bindings clearly work so I'm surprised the setTipName isn't synthesized and available for my use. You haven't given us enough info to be sure that tipName works in any sense, prior to your added class method that you mention. So when you

@dynamic and Programmatic Access to Setters

2008-04-17 Thread Mike Rossetti
I'm a bit confused by @dynamic and hoping there's a simple explanation. My little project has a data model and a custom class (Tip) for one of the classes in the model. The Tip interface defines the attributes, one of which is: @property (retain) NSString *tipName; Tip's implementation