Long story short, it seems this may be caused by the retainCount value on the paragraph style object wrapping around because there are so many references to it. According to the header, it only allows for 2^19 retains (524,288), which you can see in NSParagraphStyle.h (unsigned int refCount:19;) My logging confirms that a wrap around is occurring, so I think that may be to blame.
So now I have to spend a few hours starting back in my production code, and par it down again to figure out where all of these zillion references are coming from, since in this example it's obvious but in my production code it's not. Either way though, it seems in a huge document with a zillion little ranges it could easily and legitimately hit this retainCount limit. Seems kinda odd that it's limited to 19 bits. -- Seth Willits _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com