• 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: Displaying 2 images in a single cell of nstableview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying 2 images in a single cell of nstableview


  • Subject: Re: Displaying 2 images in a single cell of nstableview
  • From: Scott Ribe <email@hidden>
  • Date: Fri, 08 Dec 2006 08:25:37 -0700
  • Thread-topic: Displaying 2 images in a single cell of nstableview

Normal way: Your delegate's tableView:objectValueForTableColumn:row: method
returns an object which becomes the cell's value. Then the NSCell
objectValue method can retrieve it when drawing.

Back door: Your delegate's tableView:willDisplayCell:forTableColumn:row:
method modifies the NSCell, or sets global variables, or whatever. This is
not really a good thing to do if your app is all Cocoa, but can provide a
way to kludge something up if your data comes from a source that is not
Cocoa nor convenient to wrap in a Cocoa object.

--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >Re: Displaying 2 images in a single cell of nstableview (From: "vibhatha v" <email@hidden>)

  • Prev by Date: Re: A good book to start with thats recent
  • Next by Date: Re: Setting color to an NSView
  • Previous by thread: Re: Displaying 2 images in a single cell of nstableview
  • Next by thread: Re: Displaying 2 images in a single cell of nstableview
  • Index(es):
    • Date
    • Thread