• 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: grouping undo across method calls in CoreData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grouping undo across method calls in CoreData


  • Subject: Re: grouping undo across method calls in CoreData
  • From: Fritz Anderson <email@hidden>
  • Date: Mon, 5 Oct 2009 13:15:10 -0500

On 5 Oct 2009, at 8:10 AM, Jim Thomason wrote:

-(void) awakeFromInsert {
[super awakeFromInsert];
[self performSelector:@selector(createOrder:) withObject:nil afterDelay:0];
}


-(void) createOrder {
int highOrderIndex = [self getHighestIndexSomeHow];
[self setValue:[NSNumber numberWithInt:highOrderIndex] forKey:@"ordered"];
}

Important thing, though not responsive to your point:

If you mean your first method to refer to your second, you should specify @selector(createOrder) (a method taking no arguments, like the one you show), not @selector(createOrder:) (a method taking one argument). Colons matter.

	— F

--
Fritz Anderson -- Xcode 3 Unleashed: Headed for its third printing -- <http://x3u.manoverboard.org/ >


_______________________________________________

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: 
 >grouping undo across method calls in CoreData (From: Jim Thomason <email@hidden>)

  • Prev by Date: Re: [Solved] Re: NSTableView: no display until header clicked
  • Next by Date: Re: [Solved] Re: NSTableView: no display until header clicked
  • Previous by thread: Re: grouping undo across method calls in CoreData
  • Next by thread: Re: grouping undo across method calls in CoreData
  • Index(es):
    • Date
    • Thread