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

to get mouseDown Event outside the View area

 
   Macintosh computer (Home) -> Programmer Help RSS
Next:  NSWindowDidResignKeyNotification in NSPanel  
Author Message
p2

External


Since: May 19, 2007
Posts: 18



(Msg. 1) Posted: Mon Feb 11, 2008 2:21 am
Post subject: to get mouseDown Event outside the View area
Archived from groups: comp>sys>mac>programmer>help (more info?)

Hi

By clicking outside the View area, How can we get mouseDown event in
NSView?

p2

 >> Stay informed about: to get mouseDown Event outside the View area 
Back to top
Login to vote
Gregory Weston1

External


Since: Oct 03, 2004
Posts: 1917



(Msg. 2) Posted: Mon Feb 11, 2008 8:57 am
Post subject: Re: to get mouseDown Event outside the View area [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
p2 wrote:

> Hi
>
> By clicking outside the View area, How can we get mouseDown event in
> NSView?

The question makes no sense. What are you really trying to do? NSEvent
and NSWindow both have methods to find out where the mouse is *right
now* but determining when to send those messages those really depends on
your goal. As does, for what it's worth, *if* you really need to do
that.

 >> Stay informed about: to get mouseDown Event outside the View area 
Back to top
Login to vote
p2

External


Since: May 19, 2007
Posts: 18



(Msg. 3) Posted: Tue Feb 12, 2008 8:40 pm
Post subject: Re: to get mouseDown Event outside the View area [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Feb 11, 6:57 pm, Gregory Weston wrote:
> In article
> ,
>
>  p2 wrote:
> > Hi
>
> > By clicking outside the View area, How can we get mouseDown event in
> > NSView?
>
> The question makes no sense. What are you really trying to do? NSEvent
> and NSWindow both have methods to find out where the mouse is *right
> now* but determining when to send those messages those really depends on
> your goal. As does, for what it's worth, *if* you really need to do
> that.

Hi
Thanks for viewing,

I am trying like,

I created one Panel. If i click outside the Panel then i want Panel
will be closed.
How can I achieve this ?

p2
 >> Stay informed about: to get mouseDown Event outside the View area 
Back to top
Login to vote
Gregory Weston1

External


Since: Oct 03, 2004
Posts: 1917



(Msg. 4) Posted: Wed Feb 13, 2008 8:52 am
Post subject: Re: to get mouseDown Event outside the View area [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
p2 wrote:

> On Feb 11, 6:57 pm, Gregory Weston wrote:
> > In article
> > ,
> >
> >  p2 wrote:
> > > Hi
> >
> > > By clicking outside the View area, How can we get mouseDown event in
> > > NSView?
> >
> > The question makes no sense. What are you really trying to do? NSEvent
> > and NSWindow both have methods to find out where the mouse is *right
> > now* but determining when to send those messages those really depends on
> > your goal. As does, for what it's worth, *if* you really need to do
> > that.
>
> Hi
> Thanks for viewing,
>
> I am trying like,
>
> I created one Panel. If i click outside the Panel then i want Panel
> will be closed.
> How can I achieve this ?

If you want your panel to hide when your application is not active,
either use NSPanel or use an NSWindow subclass that overrides
hidesOnDeactivate to return YES.

If you want your panel to hide just because it no longer has input
focus, my primary recommendation is that your rethink your design.
 >> Stay informed about: to get mouseDown Event outside the View area 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
MouseDown Event on ScrollBar - Hi all, Is it possible to get mouse down event on a vertical scroll bar of a NSScrollView and how? Thanks

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...

How to receive mouseDown in my controller? - I respond to events in my main view and subviews, but now I want my controller to get notified of mouseDown events, even though the main view has already handled them. I thought about making the controller a subclass of NSResponder, but since the event....

Single click vs double click in mouseDown and mouseUp - For a double click mouseDown and mouseUp catch 2 event: the first report clickCount value 1 and the second report value 2. How to respond to a single click ? If clickCount value is 1 the event can be either a single click or the first event of a double..

FT Job available for L.A. area Mac expert - SmartSound Software, an award-winning music software company in Northridge, CA, is currently seeking a full-time MAC OS X SOFTWARE ENGINEER to join our product development team. Job requirements include: - MacOSX programming using Cocoa and Objective-C ...
   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 ]