Re: Displaying 2 images in a single cell of nstableview
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