• 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: Andrew Farmer <email@hidden>
  • Date: Thu, 7 Dec 2006 22:49:56 -0800

On 07 Dec 06, at 07:55, Trygve Inda wrote:
First of all: create a NSView subclass that is able to draw your
images both (next to each other or like you want) - of course inside
the drawRect: method. Then draw these view to an image. If you don't
know how to do this - here is how:

Create a offscreen window programmatically:

NSWindow *hiddenWindow = [[NSWindow alloc]
initWithContentRect:
NSMakeRect( -1000,-1000,width,height )
styleMask: NSTitledWindowMask|NSClosableWindowMask
backing:NSBackingStoreNonretained
defer:NO];


Won't this just place it 1000 pixels to the left and down from the menu bar?


I have a 30" cinema display that is in "negative" space like this. Maybe
10000 is better?

Not really. Even if it's too far out to be on any display, it'll still show up in Exposé and other window lists. This might be avoidable, but it's much better - and easier! - to do this properly, possibly by subclassing NSCell (as Erik Buck suggests)._______________________________________________


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: Trygve Inda <email@hidden>)

  • Prev by Date: Re: WebKit if-modified
  • Next by Date: Re: animating windows fade in/out
  • Previous by thread: Re: 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