Welcome to MacForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

NSWindowDidResignKeyNotification in NSPanel

 
   Macintosh computer (Home) -> Programmer Help RSS
Next:  Execute . exe on remote windows server  
Author Message
p2

External


Since: May 19, 2007
Posts: 18



(Msg. 1) Posted: Mon Feb 11, 2008 2:17 am
Post subject: NSWindowDidResignKeyNotification in NSPanel
Archived from groups: comp>sys>mac>programmer>help (more info?)

Hi

Is NSPanel get NSWindowDidResignKeyNotification or
NSWindowDidResignMainNotification ? how ?

p2

 >> Stay informed about: NSWindowDidResignKeyNotification in NSPanel 
Back to top
Login to vote
Gregory Weston1

External


Since: Oct 03, 2004
Posts: 1917



(Msg. 2) Posted: Mon Feb 11, 2008 8:54 am
Post subject: Re: NSWindowDidResignKeyNotification in NSPanel [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
p2 wrote:

> Hi
>
> Is NSPanel get NSWindowDidResignKeyNotification or
> NSWindowDidResignMainNotification ? how ?
>
> p2

Windows don't *get* those notifications. They emit them. Panels can't be
main, so they can't resign main. They can be the key window, though, so
they should send notifications when they stop being the key window.

 >> Stay informed about: NSWindowDidResignKeyNotification in NSPanel 
Back to top
Login to vote
p2

External


Since: May 19, 2007
Posts: 18



(Msg. 3) Posted: Tue Feb 12, 2008 8:44 pm
Post subject: Re: NSWindowDidResignKeyNotification in NSPanel [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Feb 11, 6:54 pm, Gregory Weston wrote:
> In article
> ,
>
>  p2 wrote:
> > Hi
>
> > Is NSPanel get NSWindowDidResignKeyNotification or
> > NSWindowDidResignMainNotification ? how ?
>
> > p2
>
> Windows don't *get* those notifications. They emit them. Panels can't be
> main, so they can't resign main. They can be the key window, though, so
> they should send notifications when they stop being the key window.

How can I make Panel the key window ? How can i stop Panel being the
key window ?

When I create Panel, is it key window ?

p2
 >> Stay informed about: NSWindowDidResignKeyNotification in NSPanel 
Back to top
Login to vote
p2

External


Since: May 19, 2007
Posts: 18



(Msg. 4) Posted: Wed Feb 13, 2008 12:39 am
Post subject: Re: NSWindowDidResignKeyNotification in NSPanel [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Feb 11, 6:54 pm, Gregory Weston wrote:
> In article
> ,
>
>  p2 wrote:
> > Hi
>
> > Is NSPanel get NSWindowDidResignKeyNotification or
> > NSWindowDidResignMainNotification ? how ?
>
> > p2
>
> Windows don't *get* those notifications. They emit them. Panels can't be
> main, so they can't resign main. They can be the key window, though, so
> they should send notifications when they stop being the key window.

I found, I created Panel using NSBorderlessWindowMask so it is not
able to be key window .So i am not getting
NSWindowDidResignKeyNotification notification.

Can i eventhougn make it key ?

p2
 >> Stay informed about: NSWindowDidResignKeyNotification in NSPanel 
Back to top
Login to vote
p2

External


Since: May 19, 2007
Posts: 18



(Msg. 5) Posted: Wed Feb 13, 2008 1:21 am
Post subject: Re: NSWindowDidResignKeyNotification in NSPanel [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Feb 11, 6:54 pm, Gregory Weston wrote:
> In article
> ,
>
>  p2 wrote:
> > Hi
>
> > Is NSPanel get NSWindowDidResignKeyNotification or
> > NSWindowDidResignMainNotification ? how ?
>
> > p2
>
> Windows don't *get* those notifications. They emit them. Panels can't be
> main, so they can't resign main. They can be the key window, though, so
> they should send notifications when they stop being the key window.

Thanks for responding,
I got the solution as i have to overwrite canBecomeKeyWindow returning
YES.

p2
 >> Stay informed about: NSWindowDidResignKeyNotification in NSPanel 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
NSPanel mouseDown - Hi all, kind of a newbie question I suppose: I am creating a splash-screen which should hide when clicked on by mouse. I'm implementing this in code (ObjC) (so not with IB, perhaps I'll palletize it later), where the toplevel component of my splash-scree...

Why my error NSPanel is now beeping when it appear ? - I make some change in both nib and source code and now my error NSPanel is beeping when it appear. Where can I look for mistake ?

memory leaking in 10.2.8? - Hi groups, I have a question concerning the memory management in the OS X (10.2.8 to be exact). Either I don't understand the way it works or there is something like major memory leak in the version I referred to (I haven't noticed it with previous..

Question about Bindings and Archiving - I'm referring to the tutorial "Enhanced Currency Converter" (from ADCHome > Documentation > Cocoa > Design Guidelines > Cocoa Bindings. I did it . Works great. Now I'm trying to make it save and open files (since it is based on an N...

Post encodeWithCoder stall? (archiving large graphs part 3) - In order to save large and tangled graphs without getting recursive unarchiving I decided to take the graph apart and archive it in the form of a series of linear arrays. What I have now are two linear arrays holding the elements of the graph. The..
   Macintosh computer (Home) -> Programmer Help All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]