• 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
Re: IB: Carbon TextView: attributes will not be set
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IB: Carbon TextView: attributes will not be set


  • Subject: Re: IB: Carbon TextView: attributes will not be set
  • From: Jerry <email@hidden>
  • Date: Tue, 2 Aug 2005 09:15:06 +0100


On 1 Aug 2005, at 18:04, Andreas Grosam wrote:

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?

I've noticed that the same seems t go for trying to set the font - the setting is ignored.

Jerry

 _______________________________________________
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

References: 
 >IB: Carbon TextView: attributes will not be set (From: Andreas Grosam <email@hidden>)

  • Prev by Date: Re: Garbage collection in XCode 2.1, and Cocoa
  • Next by Date: Re: Xcode debugging UI question
  • Previous by thread: IB: Carbon TextView: attributes will not be set
  • Next by thread: Compiler warnings
  • Index(es):
    • Date
    • Thread