• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to handle clicks on NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to handle clicks on NSOutlineView


  • Subject: How to handle clicks on NSOutlineView
  • From: Jacob Rhoden <email@hidden>
  • Date: Sat, 14 Feb 2009 12:22:59 +1100

Hi guys,

I am trying to do an action when an item in an NSOutlineView is clicked. How do I work out which item was actually clicked on? Ive tried all sorts of things and nothing seems to work. (Google or Cocoa programmng for mac os x 3rd edition are not that helpful on this!)

-(void)awakeFromNib {
    [outline setAction:@selector(loadMemberList:)];
}

-(IBAction)loadMemberList:(id)sender {
    if(ldap.connected) {
        NSLog(@"Load members");
        NSLog(@" site %@ ",[[outline selectedCell] name]);
    }
}

Thanks,
Jacob

--
____________________________________________
Jacob Rhoden          http://jacobrhoden.com

_______________________________________________

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


  • Follow-Ups:
    • Re: How to handle clicks on NSOutlineView
      • From: Graham Cox <email@hidden>
    • Re: How to handle clicks on NSOutlineView
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Cursor color in NSTextField?
  • Next by Date: Re: Writing kCFPreferencesAnyUser preferences by limited user
  • Previous by thread: Re: Cursor color in NSTextField?
  • Next by thread: Re: How to handle clicks on NSOutlineView
  • Index(es):
    • Date
    • Thread