Scripting Bridge warning: 'no class for scripting class "iTunesBrowserWindow"'
Scripting Bridge warning: 'no class for scripting class "iTunesBrowserWindow"'
- Subject: Scripting Bridge warning: 'no class for scripting class "iTunesBrowserWindow"'
- From: Gabriel Roth <email@hidden>
- Date: Thu, 20 Oct 2011 15:39:54 -0400
Hello all:
The Scripting Bridge header file for iTunes identifies
iTunesBrowserWindow as a subclass of iTunesWindow. But when I run the
following code:
iTunesApplication *iTunes = [SBApplication
applicationWithBundleIdentifier:@"com.apple.iTunes"];
SBElementArray *windows = [iTunes windows];
for (iTunesWindow *theWindow in windows)
{
if ( [theWindow isKindOfClass:[iTunes
classForScriptingClass:@"iTunesBrowserWindow"]] )
{
NSLog(@"Browser!");
}
}
I get the following warning: warning: <ITunesApplication @0x43fd20:
application "iTunes" (2298)> has no class for scripting class
"iTunesBrowserWindow".
(The warning is logged once for each open iTunes window.)
Can anyone understand why this happens? Thanks for any help.
Gabe Roth
_______________________________________________
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