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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com