You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, that comment seems pretty unclear. It would be better written as "Since we are caching these toolbar items, the must target the receiver and not the passed in document."
Looking through our apps, I don't see anywhere that we are currently making use of the document argument. I don't recall off hand if we ever did (say, to return a different set of toolbar items for different document types) or whether we were being 'helpful' by passing it.
Caching these toolbar items seems like a dubious optimization, really.
The AppController's
toolbarItemsForDocument:
parameter is not being used in the TextEditor sample. In addition the following comment appears in it:Is the
OUIDocument
parameter legacy code that wouldn't typically be used or is the TextEditor samle a special case where it's not needed?The text was updated successfully, but these errors were encountered: