• 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: Buttons with images in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Buttons with images in NSTableView


  • Subject: RE: Buttons with images in NSTableView
  • From: Duncan Bushell <email@hidden>
  • Date: Tue, 23 Nov 2004 12:31:45 +0000

Title: RE: Buttons with images in NSTableView
Rick

Brilliant! This worked fine - thanks for your help!

Duncan

--
Duncan Bushell
www.sesl.co.uk


On 23/11/04 12:05 pm, "Ricky Sharp" <email@hidden> wrote:
>
> It's true that the same cell is reused, but check out this API:
>
> tableView:willDisplayCell:forTableColumn:row:
>
> Here's a quote from the docs on it:
>
> "Informs the delegate that aTableView will display the cell at rowIndex in
> aTableColumn using aCell. The delegate can modify the display attributes of
> aCell to alter the appearance of the cell. Because aCell is reused for every
> row in aTableColumn, the delegate must set the display attributes both when
> drawing special cells and when drawing normal cells."
>
> Just found that API today after I peeked at the
> /Examples/AppKit/DragNDropOutlineView/ sample code.  Check out AppController.m
> which implements outlineView:willDisplayCell:forTableColumn:item which also
> provides a "hook" to alter the cell before it displays.
>
> --
> Rick Sharp
> Instant Interactive(tm)
>

>
> On Tuesday, November 23, 2004, at 04:59AM, Duncan Bushell <email@hidden>
> wrote:
>
>> Yes, this would work but I can see no way to get hold of the NSButtonCell's
>> id from the NSTableView so have nowhere to call setImage:  I guess the
>> problem is that NSTableView does not in fact have a separate cell for each
>> row, but just reuses the same one?
 _______________________________________________
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

  • Prev by Date: Re: MRJ application builder
  • Next by Date: Re: Calculate height of text in a text field
  • Previous by thread: Re: Buttons with images in NSTableView
  • Next by thread: openFile vs launchApplication
  • Index(es):
    • Date
    • Thread