Re: Superimpose a NSTextField over NSImageView?
Re: Superimpose a NSTextField over NSImageView?
- Subject: Re: Superimpose a NSTextField over NSImageView?
- From: desktoast music productions <email@hidden>
- Date: Tue, 25 Apr 2006 15:50:47 +0200
> Have you made sure you override the *right* constructor (i.e. the
> one that NSNibLoading calls when a NIB is loaded)? Also, are you
> changing the styleMask passed in when you call through to NSWindow's
> method (using [super initWithContentRect: ... ])?
Now I got it. IB shows a "normal" window, but if I use the window in code,
it is displayed like it should: borderless, with all its transparency and
rounded edges.
Which brings me directly to the next difficulty:
Although I use this window with its own subclass of NSWindowController, I
can't figure out how to close it.
The window won't respond the menus performClose: (or Command-W), though it
is key, it stays on top of all other windows whatever level I give it. And
it won't let me move it, though I did the following (which worked in my
non-IB version of the window, at least at startup) in my NSWindow subclass:
- (BOOL)isMovableByWindowBackground {
return YES;
}
How do you adress a borderless window by menu/key equivalent?
There's a lot about the window mechanisms I just don't seem to understand...
Yours,
Peter
--
peter schwaiger
desktoast music productions
http://www.autlawmusic.com
_______________________________________________
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