On Sep 7, 2009, at 10:20 AM, Joshua Garnham
<joshua.garn...@yahoo.co.uk> wrote:
This.
Excellent response. In the future, it is always better if you include
code or a description of your attempts (even if it's just looking at
the documentation).
- (IBAction)remove:(id)sender {
NSArray *selectedRow = [treeController selectedObjects];
As you noticed, this returns an array, not a single object.
NSInteger childrenCount = [selectedRow.children count];
Which makes this line suspect. An array doesn't have children. Didn't
the compiler issue an error/warning here? If not, you'll probably want
to turn on all warnings and treat warnings as errors. Those options
are so frequently used I think they should be the standard behavior.
--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