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



On 11/28/04 5:13 AM, Jan Brittenson didst favor us with:

>  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);

You can make it a little simpler:

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

since you don't need the size.

Larry

 _______________________________________________
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: 
 >Re: HITextView vs naked TXNObject (From: Jan Brittenson <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.