• 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
window ignores mouse clicks when app launched as hidden login item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

window ignores mouse clicks when app launched as hidden login item


  • Subject: window ignores mouse clicks when app launched as hidden login item
  • From: Kelvin Delbarre <email@hidden>
  • Date: Sat, 3 Jan 2004 16:53:21 -0500

I have an application built on Jaguar that misbehaves under Panther when launched at login, but only if launched hidden. I've managed to reproduce one of the aberrant behaviors in a trivial application, and the essence is this:

An application with one window, containing, say, a couple of text fields and a quit button. Built on 10.3.2 using the latest Xcode 1.1, with a 10.1 deployment target. The window is set in interface builder to hide on deactivate and not be visible at launch. One line of code in the application, in applicationDidFinishLaunching: [mainWindow makeKeyAndOrderFront:self];

When I activate the app by clicking its dock icon, the window appears, but it ignores mouse clicks. When I mouse-over the window close button it highlights, but also ignores clicks. I can tab between UI items, however, and menus operate properly.

The key factors are these: First, the app is launched hidden; if launched without "Hide" it operates normally. Second, its window is set to hide on deactivate; if not, it operates normally. Third, the app is built with the 10.3 SDK; if built with the 10.1.5, 10.2.7 or 10.2.8 SDK it operates normally. In all cases I was building for a 10.1 deployment target. (I also tried building with 10.3 SDK and 10.2 deployment target; that didn't help.)

I was a little surprised when the test app worked if built to the 10.2.8 SDK, because the released version of my real application does not work, and it was built with Project Builder on 10.2.8. Anyway, I can probably move forward by building my next release with the 10.2.8 SDK, but would prefer to use the 10.3 SDK (being very careful about the APIs I use, so that it can still run on 10.1).

Does anyone have some insight into what sort of thing would cause this ignoring of mouse clicks, whereby I might be able to do something about it?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Prev by Date: Re: Document based app problems
  • Next by Date: Controller Question
  • Previous by thread: Re: Document based app problems
  • Next by thread: Controller Question
  • Index(es):
    • Date
    • Thread