Re: Sync problems with NSArrayController + NSSortDescriptor + NSTextField
Re: Sync problems with NSArrayController + NSSortDescriptor + NSTextField
- Subject: Re: Sync problems with NSArrayController + NSSortDescriptor + NSTextField
- From: Quincey Morris <email@hidden>
- Date: Sun, 11 Jan 2009 23:26:43 -0800
On Jan 11, 2009, at 20:55, Quincey Morris wrote:
- (void) setName: (NSString*) newName {
name = newName; // add copy/retain/release stuff as necessary for
your memory management model
[self performSelector: @sel (changeSortName) withObject: nil
afterDelay: 0];
}
Oops, just remembered that you said 'name' was a property of a Core
Data entity, so this is not the correct way to code an override of the
setter. What I really meant was to add the performSelector invocation
to whatever setter you were using. (The Core Data programming guide
explains how to write a suitable setter, if you don't already have one.)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden