• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
IB: Carbon TextView: attributes will not be set
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IB: Carbon TextView: attributes will not be set


  • Subject: IB: Carbon TextView: attributes will not be set
  • From: Andreas Grosam <email@hidden>
  • Date: Mon, 1 Aug 2005 19:04:25 +0200

A problem with InterfaceBuilder 2.5.1:


I noticed that changing the attributes for a Carbon "Text View" (e.g. "Read Only", "No Selection", etc.) in the Inspector Panel does not have an effect on the created object.


This is the code snippet:

    txnObj = HITextViewGetTXNObject(textView);

// check current options:
TXNControlTag controlTags[3] = { kTXNWordWrapStateTag, kTXNDrawCaretWhenInactiveTag, kTXNIOPrivilegesTag };
TXNControlData controlData[3];
status = TXNGetTXNObjectControls(txnObj, 1, controlTags, controlData);
bool wrapText = controlData[2].uValue == kTXNAutoWrap;
bool drawCaretWhenInactive = controlData[1].uValue != 0;
bool readOnly = controlData[2].uValue == kTXNReadOnly;




No matter how the attributes are set in the inspector panel, the option bits are always zero.


Do I miss something?



Thanks
Andreas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: IB: Carbon TextView: attributes will not be set
      • From: Jerry <email@hidden>
  • Prev by Date: Re: XCode editor intolerably slow
  • Next by Date: Compiler warnings
  • Previous by thread: Re: XCode editor intolerably slow
  • Next by thread: Re: IB: Carbon TextView: attributes will not be set
  • Index(es):
    • Date
    • Thread