• 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
What is [NSTextStorage fontSetChanged]?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What is [NSTextStorage fontSetChanged]?


  • Subject: What is [NSTextStorage fontSetChanged]?
  • From: 慧 松本 <email@hidden>
  • Date: Wed, 12 Mar 2008 16:18:07 +0900


On Leopard, my editor application sometimes receives the fontSetChanged notification when it was turned to the front application. But I don't set my application as an observer of NSFontSetChangedNotification explicitly.


The notification invokes [NSTextStorage fontSetChanged] as below and the document edited flag is set while nothing was edited in the document.

What is  [NSTextStorage fontSetChanged]?
I can't find any documentation about  [NSTextStorage fontSetChanged].
Can I neglect that notification in my NSTextStorage subclass?

Thanks,
Satoshi

-------

#0 0x96180cf4 in -[NSLayoutManager textStorage:edited:range:changeInLength:invalidatedRange:]
#1 0x96180c14 in -[NSTextStorage _notifyEdited:range:changeInLength:invalidatedRange:]
#2 0x9616a4c8 in -[NSTextStorage endEditing]
#3 0x00147740 in -[J5TextStorage endEditing] at J5TextStorage.m:417
#4 0x92cb91a0 in -[NSMutableAttributedString addAttribute:value:range:]
#5 0x961808d8 in -[NSMutableAttributedString (NSMutableAttributedStringKitAdditions) fixParagraphStyleAttributeInRange:]
#6 0x9617e7b8 in -[NSMutableAttributedString (NSMutableAttributedStringKitAdditions) fixAttributesInRange:]
#7 0x962e45f8 in -[NSTextStorage fontSetChanged]
#8 0x00147820 in -[J5TextStorage fontSetChanged] at J5TextStorage.m:432
#9 0x94561e44 in -[NSArray makeObjectsPerformSelector:]
#10 0x962e450c in +[NSTextStorage _fontSetChanged:]
#11 0x92c19df8 in _nsnote_callback
#12 0x944e0960 in _CFXNotificationPostNotification
#13 0x92c176dc in -[NSNotificationCenter postNotificationName:object:userInfo:]
#14 0x92c1ae58 in __NSThreadPerformPerform
#15 0x944fe350 in CFRunLoopRunSpecific
#16 0x932613a8 in RunCurrentEventLoopInMode
#17 0x93261134 in ReceiveNextEventCommon
#18 0x9326100c in BlockUntilNextEventMatchingListInMode
#19 0x960e53c0 in _DPSNextEvent
#20 0x960e4d88 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
#21 0x960dea44 in -[NSApplication run]
#22 0x0002d300 in main at main.m:18


-----------------------------------------------------
Satoshi Matsumoto
816-5 Odake, Odawara, Kanagawa, Japan 256-0802




_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • [SOLVED] Re: What is [NSTextStorage fontSetChanged]?
      • From: 慧 松本 <email@hidden>
  • Prev by Date: Encoding NSString for URL
  • Next by Date: Re: NSURLDownload and userInfo
  • Previous by thread: Re: Encoding NSString for URL
  • Next by thread: [SOLVED] Re: What is [NSTextStorage fontSetChanged]?
  • Index(es):
    • Date
    • Thread