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 (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to