• 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
Re: NSWindow setMiniwindowImage seems to do nothing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSWindow setMiniwindowImage seems to do nothing
      • From: OS X AIBO <email@hidden>
References: 
 >NSWindow setMiniwindowImage seems to do nothing (From: OS X AIBO <email@hidden>)

  • Prev by Date: Re: UID <-> Login name <-> Full name
  • Next by Date: Re: NSWindow setMiniwindowImage seems to do nothing
  • Previous by thread: NSWindow setMiniwindowImage seems to do nothing
  • Next by thread: Re: NSWindow setMiniwindowImage seems to do nothing
  • Index(es):
    • Date
    • Thread