IPhone Os - TabBarController - how to get notified of view switch ?

Hi all,
I'm running into an issue with TabBarControllers.
I have an OpenGl view in a first tab that auto-refresh at 30 fps.
When I switch to the second view using the TabBar I was hoping that the viewWillDisappear method would be invoked so I could stop the openGl refresh timer but it seems that it's never called.
What is the proper way to implement that ?
Thanks for your help,

Implement tabBar:didSelectItem: in the tab bar delegate. If only the first view controller needs to catch this message you could make that controller the delegate. Otherwise you could use the app delegate (note that you shouldn't subclass the tab bar controller).
I'm not sure whether the delegate message is sent before or after the transition. But you want to fire the timer at the view controller instead of the view anyway, right? In that case I don't think you'll need to care whether the message is before or after (I think it's before, but just not sure. Easy enough to check!).

Similar Messages

  • How to get notified when changes happen on Hyper-V host or VMs

    Is there a way to get notified on Hyper-V host or VM changes? Our intention is to notify the system-administrators on any changes.
    1. How to get notified when new VM is created (or deleted) on Hyper-V.
    2. How to get notified when any memory/CPU/disk is added (or deleted) on any VM(s).
    In general: 
    - Get notified when any changes happens to Hyper-V host.
    - Get notified when any changes happens on any VMs.
    Our target servers are Windows Server(2008, 2008 R2, 2012, and 2012 R2)
    We tried to get the notification using "Event Viewer" on different Windows servers (2008, 2008 R2, 2012, and 2012 R2)
    We were able to get event-logs only on one of our 2012 R2 server as described below on creation/deletion of VMs (on another 2012 R2 server, we did not got any such event, Is there any setting required on host computer to get Hyper-V event-logs in "Event
    Viewer"?)
    Log Name:      Microsoft-Windows-Hyper-V-VMMS-Admin
    Source:        Microsoft-Windows-Hyper-V-VMMS
    Date:          12/18/2014 1:21:45 AM
    Event ID:      13002
    Task Category: None
    Level:         Information
    Keywords:      
    User:          SYSTEM
    Computer:      HPHyper-V.COMPUTERNAME.lab
    Description:
    A new virtual machine 'TestVM' was created. (Virtual machine ID A0FED305-7B1A-4BB5-952C-BA9634ACDA45)
    Log Name:      Microsoft-Windows-Hyper-V-VMMS-Admin
    Source:        Microsoft-Windows-Hyper-V-VMMS
    Date:          12/17/2014 10:57:01 PM
    Event ID:      13003
    Task Category: None
    Level:         Information
    Keywords:      
    User:          SYSTEM
    Computer:      HPHyper-V.COMPUTERNAME.lab
    Description: The virtual machine 'TestVM' was deleted. (Virtual machine ID A0FED305-7B1A-4BB5-952C-BA9634ACDA45)

    Thanks for your reply,
    Just to make it more clear:
    In our environment we have enabled Hyper-V on following Windows servers: 2012 R2, 2012, 2008 R2, 2008. The environment is very dynamic, VMs are getting created and deleted very frequently. Our intention is to get notified by any means on VM creation/deletion,
    currently we are relying on event-logs (we are OK with any different mechanism for such notification if there exists, i,e other than event-logs)
    We were able to get event-logs only on few of our 2012 R2 server on creation/deletion of VMs. On another 2012 R2 server, we did not got any such event (do we need to make some settings on 2012 R2 to get events? If yes, what are those settings).
    Also we are not getting any such event of VM creation/deletion on our Windows Server 2012, 2008, 2008 R2. Is there any setting required on hese host computer to get Hyper-V event-logs in "Event Viewer" for VM creation/deletion?

  • How to get notify when new Email comes in...

    hi, any idea on how to get notify from phone when there is new email comes in to mailbox with specific key words in the subject, says like "urgent" ..... what are the components that i need to integrate with??
    messaging version 6.2

    Hi,
    Off the top of my head there are two ways:
    1. Use the ENS service to notify when messages arrive - filter out the ones you want. This is going to require some programming and a way to send the notification to the phone.
    http://docs.sun.com/app/docs/doc/819-2655
    2. Use a user-level sieve filter to send a copy of the messages you want to another email address which triggers an SMS.
    http://docs.sun.com/app/docs/doc/819-2650
    Regards,
    Shane.

  • My iphone is Robbed How to get it back .i Have a serial number

    my iphone is Robbed How to get it back .i Have a serial number

    Did you have "Find My iPhone" on?

  • How to get the root view of a UIView?

    How to get the root view of a UIView?

    Hi, loop through the superview property until it's nil. I suggest implenting it as a category:
    @implementation UIView (whatever)
    - (UIView *)rootView;
    @end
    - (UIView *)rootView
    UIView *rootView = self;
    while (rootView.superview) rootView = rootView.superview;
    return rootView;
    Warning: typed from memory, so not guaranteed to be errorfree.

  • How to get the user view

    Hi,
    Can anyone say how to get the user view of a user logged in through admin interface.
    I have tried to get the roles of logged in user as below:
    <ref>waveset.roles</ref>
    it did not work..
    Please suggest

    who said you cant create view for logged in user, try the following machi
    <Action id='0' name='User View' application='com.waveset.session.WorkflowServices'>
    <Argument name='op' value='getView'/>
    <Argument name='authorized' value='true'/>
    <Argument name='type' value='User'/>
    <Argument name='id' value='$(WF_CASE_OWNER)'/>
    <Return from='view' to='userview/>
    </Action>
    Rgds,
    Purush

  • How to get notified when another device is tracking my iphone

    I will like to know how can get an email when someone else is tracking my iphone from another device

    Don't give anyone else your Apple ID password and they won't be able to track you.

  • How to get notified about new post created for Oracle istore

    I want be active part of post created in iStore or EBS. How can I get immediately get notified (email) about new post created in iStore or EBS (OTN Forum)?
    Currently I get immediate email about post that I am watching ie post I created or if someone reply to it.
    Appreicate.

    Thanks for your reply Hussein,
    I could not see any Watch Forum link on following url-
    iStore
    Just to repeat, I want to get notification for any new thread posted on iStore OTN forums, so that I can reply immediately.

  • How to get notified of entry that are deleted?

    Hello,
    I'm trying to get notified when an entry is deleted after a certain expiration time. The listener that I've registed gets correctly all the added/updated notification but does not get anything as far as the entryDeleted() is concerned. My guess is that either my listener is not correctly configured or that my expiration schema is wrong. Here is the configuration I'm using:
    <backing-map-scheme>
    <local-scheme>
    <expiry-delay>10s</expiry-delay>
    <flush-delay>15s</flush-delay>
    <listener>
    <class-scheme>
    <class-name>com.cache.MyCacheListener</class-name>
    </class-scheme>
    </listener>
    </local-scheme>
    </backing-map-scheme>
    Any idea why my I don't get notified or why my entries are not deleted?
    Thanks
    Jean

    Hi Jean,
    Your configuration looks right. Eviction happens lazily and on the client thread - did you wait for 15s+ and invoke any cache method (get/put/size etc) to trigger eviction ?
    For example, attached MyCacheListener.main should print:
    entry foo deleted, isSynthetic:true
    null
    Regards,
    Dimitri<br><br> <b> Attachment: </b><br>coherence-cache-config.xml <br> (*To use this attachment you will need to rename 369.bin to coherence-cache-config.xml after the download is complete.)<br><br> <b> Attachment: </b><br>MyCacheListener.java <br> (*To use this attachment you will need to rename 370.bin to MyCacheListener.java after the download is complete.)

  • How to get notified when ever I select any frame (any page item) ?

    I have added a observer class in my plugin which derives from ActiveSelectionObserver.
    But my observer constructor is not getting called when i select a page item. (In short, I am not getting notified about the selection)
    below is my code:
    class CSDTSelectionObserverImpl : public ActiveSelectionObserver
    public:
      CSDTSelectionObserverImpl(IPMUnknown *boss);
       virtual ~CSDTSelectionObserverImpl();
    protected:
       virtual void    HandleSelectionChanged (const ISelectionMessage*);
       virtual void HandleSelectionAttributeChanged(const ISelectionMessage* selectionMessage);
    CREATE_PMINTERFACE(CSDTSelectionObserverImpl, kCSDTSelectionObserverImpl)
    CSDTSelectionObserverImpl::CSDTSelectionObserverImpl(IPMUnknown *boss) : ActiveSelectionObserver(boss,IID_ICSDTSELECTIONOBSERVER) { }
    CSDTSelectionObserverImpl::~CSDTSelectionObserverImpl() { }
    void CSDTSelectionObserverImpl::HandleSelectionChanged(const ISelectionMessage* selectionMessage) { }
    void CSDTSelectionObserverImpl::HandleSelectionAttributeChanged(const ISelectionMessage* selectionMessage) {  
    if (selectionMessage && selectionMessage->WasSuiteAffected(IID_ILAYOUTSELECTION_ISUITE))
    Also, In my .fr file, I have added below:
    AddIn
      kDocBoss,
      kInvalidClass,
        IID_ICSDTSELECTIONOBSERVER, kCSDTSelectionObserverImpl,
    Do I need to implement the ILayoutSelectionSuite as well to get the notification on page item selection or implementing Observer via ActiveSelectionObserver is sufficient?
    Please help.

    I tried below in debug mode , but it gave me error while execution (when the line of code was called by in-design)
    InterfacePtr<ILayoutSelectionSuite> iLayoutSelectionSuite(fCurrentSelection, UseDefaultIID());
            if (iLayoutSelectionSuite == nil)
                break;
    iLayoutSelectionSuite->SelectPageItems(selection,Selection::kReplace,Selection::kDontScrollLayoutSelection); // Error
    So I was not able to get the UIDList of the selected page items, hence I used below code and this is working.
      InterfacePtr<const IIntegratorTarget> iIntegratorTarget(iLayoutSelectionSuite, UseDefaultIID());
            std::auto_ptr<IIntegratorTarget::TargetSuiteCollection> selectionSuites(iIntegratorTarget->GetTarget(ILayoutTarget::kDefaultIID));
            for(IIntegratorTarget::TargetSuiteCollection::size_type i = 0; i < selectionSuites->size(); i++)
                ILayoutTarget* target = (ILayoutTarget*)selectionSuites->at(i).get();
                if(!target)
                    continue;
                selection = target->GetUIDList(kDontStripStandoffs);
    But it would have been much easier and logical if I can get it using IlayoutSelectionSuite or if there is some better approach ?
    Please let me know.
    ileleLayoutSelectio
    Let me

  • How to get notify when system get wakeup call and gets connected to internet?

    Hi,
          In my project I need to get notify when system wakes up from sleep and also while system gets connected to WAN or LAN.Can any one please give suggestion on this.Thanx:).

    Your entire Utilities folder and/or its contents was deleted?
    If so, I suggest performing an Archive & Install selecting preserve user and network settings. If not and you don't know exactly what your boy deleted (have you checked the Trash?), performing an A&I will take care of everything known or unknown at once.
    http://www.thexlab.com/faqs/archiveinstall.html
    Now is also a good time to create a backup - preferably a bootable clone backup of your entire hard drive saved to an external firewire drive used for backup purposes only.
    And I also suggest creating a computer login account for your boy WITHOUT admin privileges and disable automatic login for your admin account which will require manually entering your log in password for your admin account during a computer startup, restart and with Fast User Switching.
    Before stepping away from your Mac or whenever it will be used by anyone that is unattended by you, log out from your account.
    Keep the install package for your Mac in a safe place but in a location that is not known by your boy.
    http://www.apple.com/macosx/features/family/

  • How to get notified when cache items disappear?

    Let's say I have two JVMs in a partitioned cache with no backups (backup_count=0).
    As cache items are inserted, roughly 50% of the items go to JVM1 and JVM2 each.
    If JVM2 has a violent death, all the cache items in JVM2 are lost forever. Is there a way to know in JVM1 which cache items are lost? I tried using a MapListener in JVM1 on the backing map but it doesn't get notified when JVM2 dies. Using MemberListener would tell me that JVM2 died but it wouldn't tell me which cache items were lost.
    Is there a way to know the cache items that were lost in the above scenario?
    Thanks
    Ghanshyam

    Ghanshyam,
    Unfortunately currently there is no generic functionality that would allow you to know what entries were "lost".
    Regards,
    Gene

  • HELP...........how to get the sideway view??

    I am new to the iPhone and it is a fantastic item. Can I ask how you can consistently get the sideway view, for example in iPod mode I would like to view it sideways to browse the album covers but sometimes when I turn it from vertical to horizontal it does it sometimes it does not, it led me to think if there is a specific way to turn the iPhone for it to be in horizontal view?? I have looked through the manual briefly but could not find the answer. Please help...................

    Hi drwrighty,
    You mean when using the accelerometer? It depend what's the application you're using. There are some that you can't use this feature. For example, you can use it as an album coverflow. Just turn your iPhone into a horizontal position and the screen should change to portrait view.
    Hope this helps!
    !http://signatures.mylivesignature.com/54486/122/A57996D55BE7ABB4A67DE686D381A27 4.png!

  • How to get a Custom View in CRM 2007

    Hi,
    I have created a new view (SrvTLocation) and I want to replace Service Level Agreements view with the SrvTLocation.
    In the old version, I followed this approach to get the location view
    1. Add SrvTLocation to the SrvTViewSet under the view area "SrvTActionSLA".
    2. Redefine the method "DO_REPLACE_INITIAL_VIEW" of the controller class of "SrvTViewSet", so that it will replace the "SrvTSLA" with "SrvTLocation"
    I dont know how to do it in the new system.
    Please advice me. I will reward points.
    Sreekanth

    Hi Sreekanth
    Have you checked the new CRM 2007 Cookbook.
    I believe it's available from SAP Marketplace. Haven't checked myself but do believe it's there.
    Regards
    Arden
    Reward with points if helpful

  • How to get a materialized view get to refresh itself after the job is "broken"

    we created a materialized view sometime ago with the following statement:
    create materialized view SXV_PUB_EMPLOYEE_CERT_ALL_M
    refresh complete on demand
    start with to_date('30-08-2009 04:00:00', 'dd-mm-yyyy hh24:mi:ss') next trunc(sysdate) + (28/24)
    as
    select  sxv_emp_cert_all.*
    from    sxv_employee_certification_all sxv_emp_cert_all;
    this week we found out it had not been refresh for about a month
    In dba_jobs the column broken was 'Y', next_date time something like 01-01-4000 and failures 16
    when I ran it manually by executing
    BEGIN DBMS_MVIEW.REFRESH('SXV_PUB_EMPLOYEE_CERT_ALL_M', 'C'); END;
    I found that one of the columns was too small (probably a columns of one of the underlying tables had been extended since the creation of the materialized view)
    After fixing this I ussied yesterday (on 29-8-2013) the statement :
    alter materialized view SXV_PUB_EMPLOYEE_CERT_ALL_M
    refresh complete on demand
    start with to_date('30-08-2009 04:00:00', 'dd-mm-yyyy hh24:mi:ss') next trunc(sysdate) + (28/24)
    after this the table dba_jobs showed me 30-08-2013 04:00:00 as next date
    I was expecting it to run this night at 04:00, but it didn't
    the last_date column value was still from about a month ago, the column broken still shows 'Y'
    and the next date 30-08-2013 04:00:00 (while it should been set to 31-08-2013 01:00:00
    Rrunning
    BEGIN DBMS_MVIEW.REFRESH('SXV_PUB_EMPLOYEE_CERT_ALL_M', 'C'); END;
    gave no errors this time
    and in User_Mview_Analysis the last_refresh_date column showed the date/time I had executed it
    Any idea how to get the job "unbroken" again so that the view refreshes itself every night?
    the database is Oracle Database 10g Release 10.2.0.4.0
    regards,
    Remco

    thanx for all your helpful and correct answers . but eventually I found it myself
    exec dbms_job.broken(<jobnumber>, false);

Maybe you are looking for

  • The newest version of iTunes will not recognize my iPod

    I have never had any problems with iTunes recognizing my 4th generation iPod touch until I installed the newest version of iTunes. I have went through the troubleshooting tip in the Apple Support Center...all of them...several times. However, my iPod

  • USB Live! Sound Blaster 24bit with poppi

    Hi. A month or two ago I purchased my usb connected Li've! Sound Blaster 24bit from CompUSA. It has worked fine with my logitech 5. speakers. Yesterday, I bought a 60gig Maxtor harddri've from compusa, also USB. Since I installed that, my sound has b

  • Need help unloading an .swf

    I'm using flash CS5, AS3 I'm making a huge module that has a central "Hub" (table of contents) which contains all links to the other slides which are individual .swf files. The issue is, from the main hub, i click on the link to open a swf and it sta

  • How do I reset password in OS 10.8?

    how do I reset my admin password without a disk in 10.8?

  • SETTING UP MY MAIL

    I got this MacBook last June and never set up my Mail account on it. It's asking me for my User Name and Password, both of which i havent set up, and I'm not sure what to put in. Everything i try keeps telling me that I'm wrong. WHAT DO I DO?