• 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: Problems running bannersample example project.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems running bannersample example project.


  • Subject: Re: Problems running bannersample example project.
  • From: Patrick Neave <email@hidden>
  • Date: Mon, 25 Aug 2008 23:03:44 +0100


Charles,

There is an issue with Leopard and the bannersample.

Here is the fix which should get you going. Edit the BannerController.m with the following code...

+ (void)enableCanBecomeVisibleWithoutLogin:(NSWindow *)targetWindow
{
if ([targetWindow respondsToSelector:@selector(setCanBecomeVisibleWithoutLogin:)])
{
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
[targetWindow setCanBecomeVisibleWithoutLogin:YES];
#else
NSNumber *tmpYes = [NSNumber numberWithBool:YES];
SEL selector = @selector(setCanBecomeVisibleWithoutLogin:);
[targetWindow performSelector:selector withObject:tmpYes afterDelay:0.0];
#endif
}
}



HTH, - Charles Heizer


Wonderful, it did indeed sort the problem, thank you very much indeed.

Still doesn't work in Tiger on a G3 iBook though, but that is probably something I can live with.

Regards,

Patrick



_______________________________________________

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


  • Prev by Date: Re: Lazy Loading Archive
  • Next by Date: Cocoa newbie, activeDocumentChanged, crashes
  • Previous by thread: Problems running bannersample example project.
  • Next by thread: Built Menu not firing the action
  • Index(es):
    • Date
    • Thread