Results 1 to 2 of 2

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.

Thread: Looking for help checking Boolean - Theos Related Q

  1. #1
    Green Apple viperfan91's Avatar
    Join Date
    Jan 2008
    Redondo Beach, CA
    Thanked 0 Times in 0 Posts

    Default Looking for help checking Boolean - Theos Related Q
    I am looking to check


    It is in the BrowserController of MobileSafari. I have found a related answer on this forum, funny enough, by googling around:

    umm look in SBMediaController.h
    - (BOOL)isPlaying;

    BOOL playing = [[SBMediaController sharedInstance] isPlaying];
    However, when I plug in my own needs into it..

    BOOL anythingOpen = [[BrowserController sharedInstance] isAnyPageLoaded];
    I simple get:

    Tweak.xm:6: warning: no ‘+sharedInstance’ method found
    Tweak.xm:6: warning: (Messages without a matching method signature
    Tweak.xm:6: warning: will be assumed to return ‘id’ and accept
    Tweak.xm:6: warning: ‘...’ as arguments.)
    Tweak.xm:6: warning: no ‘-isAnyPageLoaded’ method found
    How do I accomplish this? At this point and time I am simply trying to display and AlertView if isAnyPageLoaded == NO.

    Any help appreciated.

  2. #2
    You need to sharedInstance method to your BrowserController class - it's simply singleton :

    Implementing a Singleton in Objective-C / iOS | Dr John Wordsworth

  3. The Following User Says Thank You to mobostudio For This Useful Post:

    viperfan91 (2012-08-13)

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts