• 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: why popupbuttoncell always select second item in tableview ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why popupbuttoncell always select second item in tableview ?


  • Subject: Re: why popupbuttoncell always select second item in tableview ?
  • From: Corbin Dunn <email@hidden>
  • Date: Thu, 05 Feb 2009 07:57:01 -0800


On Feb 4, 2009, at 7:47 PM, Yang Mu wrote:


How to implement difference popup items in each row in table view?

I want to make popup cell related to others. so different row show different pop cell.

but table view only can set datacell to column, how to set datacell to row?

I still suggest that you go through the examples and online documentation for NSTableView/NSOutlineView. In particular /Developer/ Examples/AppKit/DragNDropOutlineView. Your approach of creating an array of cells and returning the [cell objectValue] is not correct; create an array of data (ie: strings) and return those form your controller.


corbin


_______________________________________________

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


References: 
 >why popupbuttoncell always select second item in tableview ? (From: Yang Mu <email@hidden>)
 >Re: why popupbuttoncell always select second item in tableview ? (From: Corbin Dunn <email@hidden>)
 >RE: why popupbuttoncell always select second item in tableview ? (From: Yang Mu <email@hidden>)

  • Prev by Date: Re: another NSCFDictionary and GC problem?
  • Next by Date: Re: Full Screen Mode With MenuBar
  • Previous by thread: RE: why popupbuttoncell always select second item in tableview ?
  • Next by thread: Drag and drop images to other application using NSFilesPromisePboardType
  • Index(es):
    • Date
    • Thread