• 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: Superimpose a NSTextField over NSImageView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Superimpose a NSTextField over NSImageView? [SOLVED] (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: can't archive NSValue (actually, can't keyed-archive NSValue)
  • Next by Date: Re: Temporary object created at runtime with Core Data
  • Previous by thread: Re: Superimpose a NSTextField over NSImageView? [SOLVED]
  • Next by thread: Re: Superimpose a NSTextField over NSImageView? [SOLVED]
  • Index(es):
    • Date
    • Thread