FROM : John Brownlow
DATE : Fri Apr 29 22:22:31 2005
Yeah, I've made pretty much everything in my app a custom subclass just
so I can use proper accessors instead of the error prone -valueForKey.
How about over-riding -dealloc like this, in appropriate subclasses?
- (void) dealloc
{
// regular dealloc stuff
[[self managedObjectContext] deleteObject: self];
}
It seems like it would work and is reasonably elegant, but it seems a
bit too obvious to be valid code! :)
On Apr 29, 2005, at 4:03 PM, Scott Stevenson wrote:
> You can control-click on an Entity in the model to get a custom class
> generated for you. Should be easier to figure this by doing that.
>
--
John Brownlow
Deep Fried Films, Inc
http://www.johnbrownlow.com
http://www.pinkheadedbug.com
DATE : Fri Apr 29 22:22:31 2005
Yeah, I've made pretty much everything in my app a custom subclass just
so I can use proper accessors instead of the error prone -valueForKey.
How about over-riding -dealloc like this, in appropriate subclasses?
- (void) dealloc
{
// regular dealloc stuff
[[self managedObjectContext] deleteObject: self];
}
It seems like it would work and is reasonably elegant, but it seems a
bit too obvious to be valid code! :)
On Apr 29, 2005, at 4:03 PM, Scott Stevenson wrote:
> You can control-click on an Entity in the model to get a custom class
> generated for you. Should be easier to figure this by doing that.
>
--
John Brownlow
Deep Fried Films, Inc
http://www.johnbrownlow.com
http://www.pinkheadedbug.com
| Related mails | Author | Date |
|---|---|---|
| John Brownlow | Apr 29, 20:53 | |
| Scott Stevenson | Apr 29, 21:07 | |
| John Brownlow | Apr 29, 21:49 | |
| Scott Stevenson | Apr 29, 22:03 | |
| John Brownlow | Apr 29, 22:22 | |
| Scott Stevenson | Apr 29, 22:29 | |
| Bill Bumgarner | Apr 29, 23:46 | |
| Johnny Deadman | Apr 30, 02:02 | |
| Scott Stevenson | Apr 30, 02:09 | |
| mmalcolm crawford | Apr 30, 02:10 | |
| Johnny Deadman | Apr 30, 02:16 | |
| Shawn Erickson | Apr 30, 02:21 | |
| mmalcolm crawford | Apr 30, 02:23 | |
| Shawn Erickson | Apr 30, 02:32 |






Cocoa mail archive

