Custom dock tile for window ...
Custom dock tile for window ...
- Subject: Custom dock tile for window ...
- From: Michael Pringle <email@hidden>
- Date: Sat, 8 Mar 2008 22:44:57 +0000
- Authenticated-sender:
Hi,
Earlier in the week I was trying to build an app the had no menu bar,
but still had a dock icon, similar to Dashboard. However, the only way
I could successfully hide my applications menu bar was to set the
LSUIElement in the info.plist file, but as you probably know this also
hides the dock icon, a kind of all or nothing approach.
Since I only want the dock icon to display a custom view and a number
in a badge, I figured I'd try a slightly different approach. I've
setup a transparent window that launches at start and minimizes as
soon as the app finishes launching, and then I get its dock tile
object and customize how I wish. All this works perfectly except that
when I click on the custom icon when its in the dock it resizes back
out to the transparent window, not something I want !!
So does anyone know how to intercept when the user clicks on a
minimized window icon in the dock, so that I can stop coming out of
the dock ? There is a windowWillMiniaturize delegate method, but I
can't seem to find anything for coming back the other way. What I'd
really like is to stop the window coming out from the dock, and call
makeKeyAndOrderFront on a separate window.
Does anyone have any ideas ??
Thanks
-Mic
_______________________________________________
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