Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HITextView vs naked TXNObject



Frederick Cheung wrote:

If you just want a little text field you should probably be using the Unicode edit text control (available since 10.0)

Oooh. And it's just a checkbox in IB to make one of those instead a plain MacRoman one. Not only that, but my fields are already checked. :) The following in fact works like a charm:

Size size;
CFStringRef cfstr;
GetControlData(cref, kControlEditTextPart, kControlEditTextCFStringTag,
   sizeof cfstr, (void*)&cfstr, &size);

On the other side, SetControlData with the same part+tag works also.  I wish
all problems were this easy!!!

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >HITextView vs naked TXNObject (From: Jan Brittenson <email@hidden>)
 >Re: HITextView vs naked TXNObject (From: Frederick Cheung <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.