Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > OOP Powerplant for Mac > How to insert C...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 452 of 482
Post > Topic >>

How to insert CFString into LPopUpButton

by "Neel" <nilesh_ibmr@[EMAIL PROTECTED] > May 9, 2006 at 02:54 AM

Hi there,

I am localizing my application, and searching how to put/insert
CFString in PopUpButton.
Here is the snippet of the code.

else if ( (l_popUpList = dynamic_cast<LPopupButton *>(pane) ) != NULL)
{
	Str255 l_pData;
	l_popUpList->GetMenuItemText(l_popUpList->GetValue(), l_pData);
	MapIDToUnicode(&l_pData, &dst);
        if( NULL != (cfS =
CFStringCreateWithPascalString(kCFAllocatorDefault, dst,
kCFStringEncodingUTF8)))
		{
		   // This method does change but not each and every items inside the
popup
                     l_popUpList->SetCFDescriptor( cfS );
                   // ?????? Here want to use something like
InsertMenuItem(...)
		     CFRelease(cfS);
		     l_popUpList->Refresh();
		}
}

Appreciate with your advice!

Thanks!
Neel
 




 4 Posts in Topic:
How to insert CFString into LPopUpButton
"Neel" <nile  2006-05-09 02:54:08 
Re: How to insert CFString into LPopUpButton
"Neel" <nile  2006-05-09 03:43:06 
Re: How to insert CFString into LPopUpButton
David Phillip Oster <o  2006-05-09 13:49:55 
Re: How to insert CFString into LPopUpButton
"Neel" <nile  2006-05-10 00:58:25 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 2:02:40 CDT 2008.