Re: how to make an NSWindow unmovable...
Re: how to make an NSWindow unmovable...
- Subject: Re: how to make an NSWindow unmovable...
- From: Philip George <email@hidden>
- Date: Sun, 12 Jun 2005 19:45:59 -0500
On Jun 12, 2005, at 5:28 PM, Philip George wrote:
i actually have code lying around to draw a custom window based on
provided corner/side/center pics, but i was trying to avoid using it.
if i can find no other solution, i'll fall back to that.
okay, i forgot i lost this code in a hard disk failure a few months
ago. i'm trying to re-implement it, but it's been a while so i'm a
little hazy...
how can i draw an NSImage into the contentView of an NSWindow
**without** the use of an NSImageView to hold the image?
all of this would be happening in the drawRect: method of a sublass of
NSView that i'm using as the contentView of the window.
i have individual PNGs for top, bottom, left, right, 4-corners, and
center. all pics except the corners are meant to stretch on window
resize. the 4 corner pieces are always drawn at their original size.
i did this without NSImageViews last time.
the mechanics of the individual pieces (stretching/placement) is
irrelevent i guess.
i just need to know how to write png data (represented as an NSImage)
into an NSView (sans-NSImageView).
thanks.
- philip
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden