Re: How to detect clicks outside of modal window?
Re: How to detect clicks outside of modal window?
- Subject: Re: How to detect clicks outside of modal window?
- From: Vojtěch Meluzín <email@hidden>
- Date: Thu, 03 Nov 2011 01:25:26 +0100
> > This is just a special case. In basically all platforms so far it was
> quite
> > easy to find a simple way to detect, when user clicks outside of the
> > window, so in case particular window should be a "menu", then I could
> just
> > close it on user click outside (or OS did that automatically). Minimum
> > crossplatform code, which is always a good thing.
>
> While I agree that minimum cross-platform code is always a good thing, I
> think you need to do a better separation from the core functionalities of
> your software and the generally accepted UI practices on the platform
> you're porting. I don't remember seeing any apps or windows that behave the
> way you're describing it. Of course, you can completely subclass NSWindow
> to get what you want but, IMHO, flatly ignoring UI conventions on a given
> platform is going to alienate the users and will probably have an impact on
> the number of sales/downloads you get. Porting an app from one platform to
> another is just not trying to compile the code. You have to invest yourself
> in understanding how things are done on the platform you want to support,
> else the users will look somewhere else. I'm pretty sure that most people
> on this list have seen their share of poorly ported Windows apps to the Mac
> and it's not pretty…
>
> Just my $0.02...
>
> -Laurent.
>
It's about audio plugins and trust me, there is no UI standard at all, in
fact there are no 2 people, who agree with each other.
Anyway just think about what I want - isn't it exactly what the users are
expecting, just not technically "by the book"? When you click outside of
menu, you close the menu. And that's exactly what I want, I just don't want
to do it the usual way (btw. I don't even know what the usual way is, since
all I found was a classical popup menu with set of items, but in my case
the menus may be much more complicated).
Anyway folks please if you have any idea, let me know, but I don't really
need UI guidelines, I have read the document. I really know what I'm doing
and what I want :). I just need to find out, when user clicks somewhere
outside the window, that really doesn't seem that heroic :).
Regards,
Vojtech
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden