Re: Problems running bannersample example project.
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