Thanks Jens. Btw. I fixed it with this: [window setLevel: CGShieldingWindowLevel()];
I googled it, but I'm just not sure if cannot have some "bad" side-effects. Vojtech Dne 2. listopadu 2011 0:31 Jens Alfke <j...@mooseyard.com> napsal(a): > > On Nov 1, 2011, at 3:06 PM, Vojtěch Meluzín wrote: > > Anyway we are getting out of the topic. Does anyone here know why the > modal windows work in a plugin (in a normal application) and not from a > console application? > > > Basically, apps aren’t intended to be launched by a plain exec. A normal > launch through the LaunchServices API provides some extra setup and state. > You _can_ launch an app from a shell or equivalent, and it’ll mostly work, > but that’s mostly as a convenience for developers and for debugging, and > there’s no guarantee that everything will work correctly. One of the known > side effects is that the app launches in an indeterminate state in between > active and inactive, which is probably what you’re seeing. > > If you need to launch an app programmatically, look at the LaunchServices > API, or from a shell use the ‘open’ command on the bundle. > > —Jens > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com