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 (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

Reply via email to