• 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: NSImageView frames
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImageView frames


  • Subject: Re: NSImageView frames
  • From: Nicholas Francis <email@hidden>
  • Date: Sat, 27 Dec 2003 15:11:09 +0100

Did you remember to call [super drawRect] ?

Nicholas Francis
------------------------------------------------------------------------ -------
Scheduling fascist - Over The Edge Entertainments

On Dec 27, 2003, at 11:31 AM, Devon E Bowen wrote:

I'm having trouble with frames around images. In IB I created a GUI with
an image. The image I want to show is exactly 100x100 pixels. With
the frame selected, though, it requires 116x116. It claims it them leaves
110x110 for the image which is odd since I only need 100x100. But if
I try to make it smaller, I lose some of the image. This is without any
scaling of course. I don't really understand this but I assume the frame
is really taking 8 pixels on all sides and I continue.

Anyway, everything looks great in IB. But when I run the app, the frame
disappears. In my drawRect method I am doing:

[checkers compositeToPoint:NSMakePoint(8,8) operation:NSCompositeCopy];

Note the 8x8 offset in order to jump over the area I think is the frame.
And this does seem to work since the image appears where I expect it.
But without the frame.

I tried adding:

[self setImageFrameStyle:NSImageFrameGrayBezel];

To both the start and end of drawRect but it doesn't seem to help. Am I
missing something obvious? Any tips appreciated.

Devon
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSImageView frames (From: Devon E Bowen <email@hidden>)

  • Prev by Date: List of available sounds
  • Next by Date: Follow Up: IB & Mail.app, Looking for a slider!
  • Previous by thread: NSImageView frames
  • Next by thread: Re: NSImageView frames
  • Index(es):
    • Date
    • Thread