i have standard application array of own model objects, controlled instance of nsarraycontroller , various properties of model bound various view objects.
that's working on basic level, among views nstextviews bound nsmutableattributedstrings, , programmatically add or change attributes attributed strings , have these reflected in textviews.
i've tried sorts of ways of doing no avail. textviews set allow richtext.
latest attempt has been along lines of:
code:
[anattributedstring setattributes:headingsfont range:therange]; //headings font suitable nsdictionary appropriate key , nsfont [[atextview textstorage] setattributedstring:anattributedstring];
which doesn't work (no error no change in formatting visible in textview).
there way can this? or better off forgetting mixing bindings , making changes programmatically textviews , dealing them entirely programmatically? if did this, don't see why couldn't still use bindings other view objects.
first serious coding query since started getting - please gentle me! appreciated.
Forums Macs Mac Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
No comments:
Post a Comment