• 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
Re: doubleClick and tableView Trouble
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: doubleClick and tableView Trouble


  • Subject: Re: doubleClick and tableView Trouble
  • From: "Charles Moore Jr." <email@hidden>
  • Date: Wed, 1 Feb 2006 16:22:36 -0600

I'm assuming you have things bound through an NSArrayController and KVO coding, no? If that's the case, you actually want to do selection through your array controller as in:

NSArray *sortedArray = [myArrayController arrangeObjects:myObjectArray];

		int row = [myTableView clickedRow];

		Object *myObject = [sortedArray objectAtIndex:row];

Now you should have the correct object.

HTH,

GZ

done. works perfectly now.

thanks...


cm



----------------------------------
Charles Moore
email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >doubleClick and tableView Trouble (From: "Charles Moore Jr." <email@hidden>)
 >Re: doubleClick and tableView Trouble (From: Glenn Zelniker <email@hidden>)

  • Prev by Date: CORE DATA :: Tree Controller & multiple source entities
  • Next by Date: roll-over on NSAttributedString within an NSOutlineView.
  • Previous by thread: Re: doubleClick and tableView Trouble
  • Next by thread: Use (if any) of NSImageView bindings placeholders?
  • Index(es):
    • Date
    • Thread