This. - (IBAction)remove:(id)sender { NSArray *selectedRow = [treeController selectedObjects]; NSInteger childrenCount = [selectedRow.children count]; if ([childrenCount != 0]) { NSLog(@"Display Alert"); }else{ NSLog(@"Delete Imediately"); } }
________________________________ From: Kyle Sluder <kyle.slu...@gmail.com> To: Joshua Garnham <joshua.garn...@yahoo.co.uk> Cc: "cocoa-dev@lists.apple.com" <cocoa-dev@lists.apple.com> Sent: Monday, 7 September, 2009 17:52:26 Subject: Re: Making an NSAlert be displayed when the User attempts to delete a row from an NSOutlineView when it has children. On Sep 7, 2009, at 8:14 AM, Joshua Garnham <joshua.garn...@yahoo.co.uk> wrote: > How would I do this? http://www.whathaveyoutried.com --Kyle Sluder _______________________________________________ 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