Re: grouping undo across method calls in CoreData
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