| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I have an OutlineView bound to an NSTreeController. I would like to set the selected row of the OutlineView at the applications launch to the second row. It defaults to the first. I have tried many combination of the code below to no avail. If I trigger the code from a button it works just fine. Something happens at launch time to override these commands. Sometimes at app launch it even chooses the second row and then I see it switch back to the first row before my eyes. I have tried this code in awakeFromNib and applicationDidFinishLaunching. NSError *error; [treeController fetchWithRequest:nil merge:NO error:&error]; [treeController setSelectionIndexPath:[NSIndexPath indexPathWithIndex:1]]; [outlineView selectRow:1 byExtendingSelection:NO]; _______________________________________________ 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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.