• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sync problems with NSArrayController + NSSortDescriptor + NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Sync problems with NSArrayController + NSSortDescriptor + NSTextField (From: Dado Colussi <email@hidden>)
 >Re: Sync problems with NSArrayController + NSSortDescriptor + NSTextField (From: Quincey Morris <email@hidden>)

  • Prev by Date: Remove Items From NSSet (safely)
  • Next by Date: Re: Remove Items From NSSet (safely)
  • Previous by thread: Re: Sync problems with NSArrayController + NSSortDescriptor + NSTextField
  • Next by thread: [SOLVED]: Sync problems with NSArrayController + NSSortDescriptor + NSTextField
  • Index(es):
    • Date
    • Thread