• 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: Ronny Reichmann <email@hidden>
  • Date: Thu, 7 Dec 2006 17:19:55 +0100

As I understand your mail, you have two displays standing beside each other. If this is the case your workspace should begin on the lower left side of your left display with x0,y0. In Cocoa each drawing starts at the bottom left side not at the top left. The window that is instantiated with -1000, -1000 will be 1000 pixel left from your leftmost display and 1000 pixel below the bottom of your bottommost display (if you use to arrange them on top of each other in some way) as far as I know. By the way: all that information can be obtained by reading the cocoa documentation or by google for it.
Just try out the snippets and look out for appearance of that hiddenWindow. If it does, pleas tell me.



have a nice day,

ron


Am 07.12.2006 um 16:55 schrieb Trygve Inda:

Hello,

my idea of solving this problem is as follows:

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?


Trygve




_______________________________________________

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


  • Follow-Ups:
    • Re: Displaying 2 images in a single cell of nstableview
      • From: Shawn Erickson <email@hidden>
References: 
 >Re: Displaying 2 images in a single cell of nstableview (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: Displaying 2 images in a single cell of nstableview
  • Next by Date: Re: Displaying 2 images in a single cell of nstableview
  • 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