I've decided not to use this in my app and try something else to make 
annotations in my textView. Thanks all for the input though.

- Koen.

On Sep 3, 2012, at 18:57, Kyle Sluder <[email protected]> wrote:

> On Sep 3, 2012, at 3:06 PM, William Squires <[email protected]> wrote:
> 
>> This would be better handled with some sort of filter applied at I/O time 
>> (i.e. when you read/write the file) I would think. That is, let your model 
>> objects handle the translation, and let the view objects do what view 
>> objects are supposed to do. Trying to fiddle around with low-level 
>> NSTextStorage just seems to be a way to waste several afternoons pulling out 
>> your hair in frustration, methinks!
> 
> I disagree. NSTextStorage *is* a model object. It's far better to actually 
> understand and and use the text system (including glyph generation) rather 
> than "fake it" by transforming the model on read/write and ensuring your 
> transformations are perfect mirrors, are applied at the right times, and 
> correctly interact with the pasteboard, undo manager, Services, Input 
> Methods, and VoiceOver.
> 
> --Kyle Sluder
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/koenvanderdrift%40gmail.com
> 
> This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to