Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Progress bar on front NSPanel is grey not blue??



Am 19.10.2007 um 22:24 schrieb David Hoerl:
- (BOOL) isKeyWindow
{
  return YES;
}

Once added, the panel now displays an Aqua colored progress bar.

I haven't tested this, but I think you'd really want to override canBecomeKeyWindow, not isKeyWindow. The former means your window can become the key view when the user designates it as such (by clicking or using Cmd-~ or whatever). If you override the latter, you're effectively lying to everyone about your window.


So, in general, you want to override canBecomeMain or canBecomeKey, not isMainWindow or isKeyWindow.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de



_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >RE: Progress bar on front NSPanel is grey not blue?? (From: David Hoerl <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.