Re: NSWindow setMiniwindowImage seems to do nothing
Re: NSWindow setMiniwindowImage seems to do nothing
- Subject: Re: NSWindow setMiniwindowImage seems to do nothing
- From: Matthew Formica <email@hidden>
- Date: Tue, 06 Aug 2002 14:42:11 -0700
-applicationDidFinishLaunching is too late in the startup process to
register the default; NSApplication has already read its preferences. Set
the default in main() before NSApplicationMain().
- Matthew
--
Matthew Formica
DTS Engineer - Developer Tools and Cocoa
Apple Computer, Inc.
email@hidden
Mac OS X Development Tools:
http://developer.apple.com/tools/
Project Builder on the web:
http://developer.apple.com/tools/projectbuilder/
Project Builder FAQ:
http://developer.apple.com/tools/projectbuilder/faq.html
Cocoa docs on the web:
http://developer.apple.com/techpubs/macosx/Cocoa/CocoaTopics.html
Cocoa sample code:
http://developer.apple.com/samplecode/Sample_Code/Cocoa.htm
On 8/6/02 1:34 PM, "OS X AIBO" <email@hidden> wrote:
>
Sorry to bother the list with this question again but
>
I am stuck.
>
>
For the aesthetic charm that such a feaure offers, I
>
want to have a custom image displayed for my document
>
window while it sits miniaturized in the dock. All
>
evidence in the documentation points to this being
>
possible, but my attempts thus far have failed.
>
>
Has anyone managed to do this successfully?
>
>
Ali Ozer <email@hidden> wrote in
>
http://lists.apple.com/archives/cocoa-dev/2001/Oct/30/contextmenuforminimisedw
>
.005.txt
>
You need to set a default, which you can do in the
>
context of your app
>
by registering it at startup. From the AppKit release
>
notes:
>
>
There is a user default, AppleDockIconEnabled, to
>
enable setting the image in a minimized window tile
>
with -[NSWindow setMiniwindowImage:]. The image will
>
be scaled as necessary to fit the tile. This behavior
>
is
>
off by default, so you must set AppleDockIconEnabled
>
to YES if you want to enable this behavior.
>
>
Fair enough. So, I added this to my app delegate's
>
applicationDidFinishLaunching() implementation.
>
>
NSUserDefaults standardUserDefaults =
>
NSUserDefaults.standardUserDefaults();
>
>
NSDictionary dict = new NSDictionary("YES",
>
"AppleDockIconEnabled");
>
standardUserDefaults.registerDefaults(dict);
>
>
>
>
>
NSWindow setMiniwindowImage still seems to do nothing.
>
Can someone point out what I may have overlooked?
>
>
Thanks,
>
Dan
>
Yahoo! Health - Feel better, live better
>
http://health.yahoo.com
>
_______________________________________________
>
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.
_______________________________________________
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.