iTunes-ScriptingBridge / SBApplication

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • iTunes-ScriptingBridge / SBApplication

    Hi und schönen Feiertag!

    Kleines Problem:

    Quellcode

    1. iTunesApplication *iTunes = [[SBApplication alloc] initWithBundleIdentifier:@"com.apple.iTunes"];

    (eigentlich per Property)

    Funktioniert perfekt, nur kommt logischerweise der Warnhinweis "Incompatible pointer types assigning to 'iTunesApplication *' from 'SBApplication *'.
    Stört eigentlich nicht, aber es nervt mich halt. ;)
    Kennt das jemand (oder die Lösung des Problems)?
  • Eventuell hilft auch ein Cast.

    Quellcode

    1. iTunesApplication *iTunes = (iTunesApplication*)[[SBApplication alloc] initWithBundleIdentifier:@"com.apple.iTunes"];
    «Applejack» "Don't you use your fancy mathematics to muddle the issue!"

    Iä-86! Iä-64! Awavauatsh fthagn!

    kmr schrieb:

    Ach, Du bist auch so ein leichtgläubiger Zeitgenosse, der alles glaubt, was irgendwelche Typen vor sich hin brabbeln. :-P