• 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: Creating a NSTableView cell the "iPhone way"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a NSTableView cell the "iPhone way"


  • Subject: Re: Creating a NSTableView cell the "iPhone way"
  • From: Alastair Houghton <email@hidden>
  • Date: Thu, 10 Jun 2010 12:04:27 +0100

On 10 Jun 2010, at 10:49, Gustavo Pizano wrote:

> Yes, sorry I didn't think properly when typing, NSCell is not a view, and unfortunately  Cocoa doesn't offer the option as UIKit to drag in IB a ("NSTableCell"), and just put all the controls there, then set the Identifier to reuse, configure the cell and return the cell, in the delegate method... :(
>
> So checking some examples, if I want to place some view in a cell I must pass to the custom cell a weak reference of the view, then in the draWithRect method add the view to the controlView?.. interesting..
>
> I was drawing attributed strings instead.. but now i need to support selection of that text.

Without knowing the details, it's hard to be sure, but it sounds like you probably want to use the field editor (see the NSCell and NSTableView methods relating to editing cells' content).

Kind regards,

Alastair.

--
http://alastairs-place.net



_______________________________________________

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: 
 >Creating a NSTableView cell the "iPhone way" (From: Gustavo Pizano <email@hidden>)
 >Re: Creating a NSTableView cell the "iPhone way" (From: Alastair Houghton <email@hidden>)
 >Re: Creating a NSTableView cell the "iPhone way" (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: View switching problem: can't delay execution of code until after UI elements in new view have finished loading
  • Next by Date: NSProgressIndicator on StatusBar working on 10.6 but not 10.5
  • Previous by thread: Re: Creating a NSTableView cell the "iPhone way"
  • Next by thread: View switching problem: can't delay execution of code until after UI elements in new view have finished loading
  • Index(es):
    • Date
    • Thread