From: Christiaan H. <cmh...@gm...> - 2008-03-21 15:16:42
|
On 21 Mar 2008, at 3:45 PM, Adam Maxwell wrote: > In article <6DE...@gm...>, > Christiaan Hofman <cmh...@gm...> wrote: > >> Can global string names defined as extern but not defined as such on >> Tiger be used in the source? The docs get me very confused. E.g. the >> PDFDocumentDidPeginWriteNotification is said to be available in 10.4. >> Indeed that notification is send, but the extern global string is not >> declared on 10.4. > > Oops, cmd-e is "Post" in MT-Newswatcher. > > I was looking at the 10.4 SDK header, and that symbol isn't > declared...so the problem is different from the metadata one. > Yes, but the documentation is equivalent (both say "available on Mac OS X 10.4 and later"). I filed a documentation bug on these (as well as on the rest f the API). > I'd register for the value of it instead of relying on it to be > present > in 10.4, so do > > NSLog(@"%@", PDFDocumentDidBeginWriteNotification) > > and then register for that value. That will at least prevent a > crash if > the global doesn't exist on 10.4. That's what we do now. I was just wondering if it is possible to change that. Moreover, when new code is added, how do you know what can be used and what cannot? The documentation in 10.5 is lying, and I can't find the documentation from 10.4 anymore. Christiaan |