Does IObserver required while I have my own observer interfaceID / implementation?

Hi All
I have created a class for a button as below and not used IID_IOBSERVER. It didn't work for me. But the same thing works with sdk sample 'snippetrunner' for 'GoButton'. Do I need to define my own Interface while I use my own IID?
    Class
        kMSRDoButtonBoss,
        kRollOverIconButtonBoss,
               IID_IMSRDOBUTTONOBSERVER,    kMSRDoButtonObserverImpl,
---- MSRDoButtonObserver.cpp ---
class MSRDoButtonObserver : public CObserver
    public:
        MSRDoButtonObserver( IPMUnknown* boss );
        virtual ~MSRDoButtonObserver();
        virtual void AutoAttach();
        virtual void AutoDetach();
        virtual void Update( const ClassID& theChange, ISubject* theSubject, const PMIID& protocol, void* changedBy ) ;
    private:
        const PMIID fObserverIID;
CREATE_PMINTERFACE(MSRDoButtonObserver, kMSRDoButtonObserverImpl)
MSRDoButtonObserver::MSRDoButtonObserver( IPMUnknown* boss ) :
CObserver( boss ), fObserverIID(IID_IMSRDOBUTTONOBSERVER)
MSRDoButtonObserver::~MSRDoButtonObserver(){}
void MSRDoButtonObserver::AutoAttach()
    do {
        InterfacePtr<ISubject> subject(this, UseDefaultIID());
        ASSERT(subject);
        if (!subject) {
            break;
        subject->AttachObserver(this, ITriStateControlData::kDefaultIID, fObserverIID);
    } while(false);
void MSRDoButtonObserver::AutoDetach()
    do {
        InterfacePtr<ISubject> subject(this, UseDefaultIID());
        ASSERT(subject);
        if (!subject) {
            break;
        subject->DetachObserver(this, ITriStateControlData::kDefaultIID, fObserverIID);
    } while(false);
void MSRDoButtonObserver::Update(const ClassID& theChange, ISubject* theSubject, const PMIID& protocol, void* changedBy )
    //if(theChange == kTrueStateMessage)
        CAlert::InformationAlert("Hi");
thanks
Hakkim.Ays

Hi Dirk
Thanks for ur reply.
Yes I have added 'kMSRDoButtonBoss' in class def & type of .fr file.
type MSRDoButton    (kViewRsrcType) : RollOverIconButtonWidget (ClassID = kMSRDoButtonBoss)
And panel edit mode, shows classId as 'kMSRDoButtonBoss'.
When I click the button nothing happens!?
Hakkim.Ays

Similar Messages

  • Please help!! I have iPhone 4 so does my wife, we each have our own apple id's for these devices. We have just got an ipad to share for at home use. Is there a way to have both our id's on the ipad to share our music photos etc?

    Please help!! I have iPhone 4 so does my wife, we each have our own apple id's for these devices. We have just got an ipad to share for at home use. Is there a way to have both our id's on the ipad to share our music photos etc?

    For the purposes of 'refreshing' your question so that others more expert can comment here is a link you should read-
    http://apple.stackexchange.com/questions/27070/how-many-apple-ids-should-one-hou sehold-have

  • Does my hp envy 7640 have its own email address?

    When i was shopping for a printer a HP rep was there and said that the HP envy had its own email address. Is this true and if so how do you set it up?

    ELLEMAE
    Welcome to the HP Community Forum.
    Yes, this printer can have its own email address and you can send print jobs to your printer to it from the Internet.  It is a very cool feature. 
    HP ENVY 7640 e-All-in-One Printer
    NOTE:  You may have to use the above cached link to access the Printer's Support pages today.  The direct search link from Driver and support might be glitchy.    This is primarily relevant when / if you need to install the Full Feature Software for the Printer to find the Driver's page.
    HP ENVY 7640 e-All-in-One series - User Guide
    See the following for "how-to" and other information:
    Add Device to Printer
    Click the Kudos Thumbs-Up to say Thank You!
    And...Click Accept as Solution when my Answer provides a Fix or Workaround!
    I am pleased to provide assistance on behalf of HP. I do not work for HP. 
    Kind Regards,
    Dragon-Fur

  • Does the inner while loop have to be stopped before the outer loop will run?

    too many while loops cause my controls to be very sluggish.

    Hello,
    The outermost while loop executes everything inside it over and over. Therefore, if you have a while loop inside another while loop, the first iteration of the outer while loop will execute the inner loop, and then the inner while loop will execute over and over again until it is stopped. At this time the outer while loop will perform another iteration, and the process will repeat until the outer loop is stopped. Generally, embedding while loops within while loops is not recommended.
    Please visit the below sites for more information on program efficiency.
    http://zone.ni.com/devzone/conceptd.nsf/webmain/b6605678ad7a09a8862568eb007a6d7a?OpenDocument
    http://zone.ni.com/devzone/learningcenter.nsf/03f7c60f17aad210862567a90054a26c/1b36040af87887078625
    6cbc006fe314?OpenDocument
    I hope this helps!
    --Liz F

  • Does adobe premiere elements 10 have its own intern burning program?

    IN the past, using adobe premiere had its own burning program, so you coud burn straight from editing.
    Do i need to buy a seperate burning program now like nero? And can this be integrated in the editing program?
    Of do i always have to burn via a list of filmparts in a burning program, outsige Adobe?
    Bernard Bussemaker

    bernardbussenmaker
    I believe that Premiere Elements uses a Sonic burn software built into the program for the burn to disc opportunities under Share/Disc/.
    But the other half of the equation is the Blu-ray DVD or DVD/CD burner being recognized by Premiere Elements (see burn dialog and the Burner Location: field).
    Is your burner recognized by your Premiere Elements 10?
    ATR

  • If an artist has to release her song on her own in india and have download capability on Itunes, what does itune require from an artist to set up such a facility?

    if an artist has to release her song on her own in india and have download capability on Itunes, what does itune require from an artist to set up such a facility?

    Google how to sell your music on iTunes
    Here's the Apple link.
    http://www.apple.com/itunes/working-itunes/sell-content/

  • This is an odd one, does Logic have its own clock?

    Hey all,
    This is one for the books over here. Does Logic have its own clock? Not as in clocking, 44.1 48 etc. Not in that respect, but rather does Logic have its own "date and time" clock separate from OS X?
    Here's what's happening...
    We have two rooms here. Identical. Writing done in "A" gets sent over to "B", cleaned up, sent back over to "A" etc etc. So in the "A" room, a cue comes from "B" with a last opened time of last night at 10:00 pm. A last modified time of 10:15 pm last night. That's the data if you get info on it from a finder window. Now with Logic open if you "open" a cue from Logic, navigate to where this cue is at, it says that the cue was last opened TONIGHT at 9:40pm (which is in the FUTURE) and last modified TONIGHT at 9:55pm (also in the FUTURE). We've caught it now, and things seem to be okay if you open a cue from the finder window and not from Logic->File->Open. A cue was opened from Logic yesterday, two hours of work done, saved often, and when it was closed and then opened again after lunch, none of the work was present. And the date and time modified was again in the future. So SO weird. Cleared prefs, repaired permissions. Still happening. Anyone else experiencing this? Any tips? Advice? Does Logic have its own clock? We're baffled.
    Any help is greatly appreciated as always!
    Best wishes,
    the Earle-Tones Music crew

    Brent, thanks for seconding in here. Sometimes this kind of you'd-never-expect-it-to-happen-weirdness can be easily written off as some kind of itinerant digital voodoo without this kind of corroboration.
    So while we're on the subject of the finder lying... Folders are no picnic either.
    If you create a folder and never open it but throw a bunch of stuff into it within the same minute that it's created, its creation date and modification date will be the same. But the simple act of opening that folder for the first time can cause its mod date to change. Or, if you go into that folder and re-organize some items, or rename some items, the folder's modification date will also change.
    This means that if you have a bunch of folders contained within another folder (the "containing folder"), and you re-organize/re-name items within those folders, you can't count on the modification date of any one of the contained folders to indicate the order in which they were originally created. Because of this behavior you'll want to view by date created. But I still can't get my head around the idea that manipulation of data within a folder causes the attributes of the containing folder to change.
    This may have some bearing on your current situation... or then again, maybe not LOL!   : - )
    -=iS=-

  • Is it possible to have your whole family on one apple id or is it better to have each person have there own? If each has their own does each id have to buy their own music and apps? How does find my iphone work with one apple id or two?

    Is it possible to have your whole family on one apple id or is it better to have each person have there own? If each has their own does each id have to buy their own music and apps? How does find my iphone work with one apple id or two? also I am going to be going off to college soon should I make an itunes id for my self and how will I get all the music from the old id?

    Is it possible to have your whole family on one apple id or is it better to have each person have there own?
    Yes, it is possible. 1 apple ID can be associated with up to 10 devices.
    If each has their own does each id have to buy their own music and apps?
    Yes, all purchases are non-transferable.
    How does find my iphone work with one apple id or two?
    Every device associated with one apple ID through Find my iPhone is tied to that Apple ID; Find my iPhone will work in the same way with up to ten devices associated with one apple ID. You cannot enable Find my iPhone for one device across two apple IDs
    I am going to be going off to college soon should I make an itunes id for my self and how will I get all the music from the old id?
    If you have authorized a computer with the old apple ID, you can transfer old media purchased through the old to other devices via iTunes. This doesn't mean the media purchases through the old apple ID it transferred to the new account. If you plan to make future purchases and don't wish to share them with others, make your own apple ID.

  • I have my own icloud account separate from my family's apple ID for itunes. I need more storage for icloud...do I have to pay a separate $20/ month to get more storage or does the $20 include all members of the plan?

    I have my own icloud account separate from my family's apple ID for itunes. I need more storage for icloud...do I have to pay a separate $20/ month to get more storage or does the $20 include all members of the plan?

    Welcome to Apple Support Communities
    If your iCloud account uses your family's Apple ID, you will pay $20/year for all your family members. If your iCloud account uses a different Apple ID than your family's Apple ID, you will pay only for you

  • I am part of a family sharing setup.  Can I have my own payment method so the organizer does not get charged for my purchases?

    I am part of a family sharing setup.  Can I have my own payment method so the organizer does not get charged for my purchases?  If so, how do I set this up?

    Yes.  Just redeem gift cards so that your own account always has a sufficient credit balance.  Here is how it works:
    Family purchases and payments
    After you set up your family, any time a family member initiates a new purchase it will be billed directly to your account unless that family member has gift or store credit. First, their store credit will be used to pay the partial or total bill. The remainder will bill to the family organizer's card.

  • I have recently upgraded my iBookG4 from Tiger to Leopard 10.5.8 and find my Bluetooth USB adaptor no longer connects. The Bluetooth pane says inactive. Does Leopard require  USB 2.0. I've had the adaptor for some time so may be USB 1.0

    I have recently upgraded my iBookG4 from Tiger to Leopard 10.5.8 and find my Bluetooth USB adaptor no longer connects. The Bluetooth pane says inactive. Does Leopard require  USB 2.0. I've had the adaptor for some time so may be USB 1.0

    Bluetooth icon on menu bar shows bluetooth off. When opening bluetooth preferences it shows the devices I've connected previously,( my mobile phone), and other devices I've attempted to connect but not very successfully: my iPhone and MiniMac.  The bluetooth dongle in the USB port shows a continual blue light but does not react and the iBook does not recognise that it is there. There is absolutely no reaction when I try to pair my mobile phone, which I've done successfully before upgrading to Leopard, either by the iBook or the mobile phone.
    I assumed that Tiger was not bluetooth compatible with the iPhone or MacMini running SnowLeopard and hoped by upgrading to Leopard I could achieve some file transfers between the three devices (iBook, iPhone and MacMini)

  • TS1398 After updating to ios 6 my iphone 4 would no longer connect to my home wifi. At work we have a free wifi connection that does not require a password. However my wifi at home is password protected. I have the right password. It works on my ipod touc

    After updating my iphone 4 with the ios 6 update. My iphone would no longer connect to my home wifi that is password protected. I know that I have the right password entered in. At work we have a free wifi connection that does not require a password and I can connect no problem to it. My ipod touch has no problem connecting to my home wifi. It is a 3rd gen ipod and does not have the ios 6 update on it. Please help!

    I'm having the same issues. Started when I upgraded iphone 4S and ipad1 to 5.1.1. Wife's iphone 4g on 4.4.2 has been ok. I've forgot the network on both devices and restored the iphone, none of which changed the issue. I've upgraded to ios 6 on the iphone 4s, problem still persists.
         One thing that will help for a time: go to your router and change the wireless control channel. When I first did this I got full connectivity for about 48 hours... and now the problem is back. I'm now changing the wireless control channel every 12 hours, which is a pain but at least keeps me connected. I've tried a few other solutions that are out there and that has been the best one so far.
         to do this on a motorola router: type 192.168.0.1 in your address bar.
    username: admin and password:motorola if you have not changed the factory defaults.
    Click on the word "wireless" and look for the "control channel" field. This may be set to auto or to 1, try changing it to 6 or 11 (preferred) or any other channel.
    The control channel can cause static in the wireless system IF there are several networks nearby that are on the default setup.
    There is a fair bit of buzz about this issue out there, some other things I've seen:
    This is a hardware issue. Go to the store and have your wifi antenna checked, some users reporting that they get free replacement devices.
    Check against other wifi networks that require a password (this is next for me). Logon to those networks and surf until your wifi stops. If your wifi connects to the internet but stops responding, then this is a software (or hardware) issue and apple needs to step up. Some are claiming this to be the case.
    IF you connect and stay connected/on the internet on another password protected wifi, then the issue is with your router. this is where things get cute.
    Comcast may tell you to update your firmware. Motorola may tell you that your cable provider is the only one who can push through firmware updates. Comcast may tell you that you are not in an area that is being updated. It's unclear if they say that to all customers, or just those who have purchased cable modems and aren't renting them from comcast.
    Good luck, more to come if I figure out anything else, and please post any solutions you may find.

  • I have a 4s Iphone and want to add a date and time stamp to photos taken on the regular camera installed on the phone.  Does this require a separate app?

    I have a 4s iphone and want to date and time stamp photos taken with the regular camera installed on the phone.  Does this require a separate app?

    For such to be visible, yes. Many such apps in the app store.

  • HT201335 I'm thinking of getting apple tv...I have an HD tv. will the apple tv automatically detect my wifi or does it require more to use apple tv?

    I'm thinking of getting apple tv...I have an HD tv. will the apple tv automatically detect my wifi or does it require more to use apple tv?

    Hi ronda
    I am not sure what you mean by "automatically". It will find your network but you will need to enter your password, assuming you have your WiFI protected.

  • Are there any apps which will allow local calling using data only that do not require any special numbers called out initially and does not require the receiver to have a similar app or account?

    Are there any apps which will allow local calling using data only (not minutes, no extra charge) that do not require any special numbers called out initially and does not require the receiver to have a similar app or account?  Just for random local calling.

    Yup.
    Here is a way you could solve this by adding an extra column and a small lookup table:
    The lookup table is here for the copying:
    0
    1
    k
    kilo
    2
    M
    mega
    3
    G
    giga
    4
    T
    tera
    5
    P
    peta
    6
    E
    exa
    7
    Z
    zetta
    8
    Y
    yotta
    In table 8 (the one on the left in the image) column A is where the values are. 
    B1=A1÷(1024^VLOOKUP(INT(LOG(A1, 1024)), Binary Prefixes::A:D, 1))&" "&VLOOKUP(INT(LOG(A1, 1024)), Binary Prefixes::A:D, 2)&"B"
    this is shorthand for... select cell B1, then type (or copy and paste from here) the formula:
    =A1÷(1024^VLOOKUP(INT(LOG(A1, 1024)), Binary Prefixes::A:D, 1))&" "&VLOOKUP(INT(LOG(A1, 1024)), Binary Prefixes::A:D, 2)&"B"
    select cell B1, copy,
    now select all the cells in column B, paste

Maybe you are looking for

  • Windows 7 and DV6500t (ICH8M LPC Interface Controller)

    I recently loaded (via dual boot) Windows 7 onto my HP dv6500t.  All went fine and all is working OK except for one issue.  In Device Manager, I have one unknown device.  Looking at its properties, it shows a location of: "ICH8M LPC Interface Control

  • Insert Page Name in Master page

    Hello. I was wondering if there was an easy way to insert the page name inside a master page, something like indesign's variable ? If i want this exactly like the widgets (drag and drop a box, it places with editable attribute of pageitem::menu), i'm

  • E-REc: Error in Candidate Data Overview

    Hi All, When we try to  open the external candidate 'print preview' - Data overview for Candidate is not opening. we are getting this error only for one candidate in production, rest for all the candidates - data overview is opening fine. Error is: E

  • How do I export v-card formatted files for use with either Numbers or Excel?

    How do I export v-card formatted files for use with either Numbers or Excel?

  • Can't convert int to int[]    URGENT!

    HI list! Here is the code part I have: /** Holds the permutated groups which are arrays of integers. */ Vector v; if(arg.length<3) System.exit (0); //Need at least 3 arguments elements=new int[arg.length-1]; //Create array to hold elements /* Copy th