Hi Fritz, Thanks for the reply. The tricky thing about this "application" is that it's actually a Max 6 external object, so it's not officially an application, and doesn't have a .pch file (at last not in the Xcode project). They do have a config file that points to one of their support files, which in turn has a .pch file… But I tried adding my framework's master header there, without success... Anyway, it seems like this will be a detail specific to writing Max externals, so I'll post on their forum.
On a different, but related note, I want my framework to be useable for Max externals, but not limited to that use. To work in Max I need to link against their MaxAPI.framework. What I'm wondering is how I might be able to NOT load the MaxAPI.framework for Cocoa application writing, and load it only for writing Max externals. I managed to get a normal Cocoa app to **build** by making the MaxAPI.framework "optional" in the build settings, but this only delayed the crash until runtime, when the code tried to make a call to the MaxAPI. Obviously what I need to do, in addition to not loading the MaxAPI, is to avoid making calls to its methods/functions. I'm guessing I could do that in a preprocessor routine, by checking whether the MaxAPI is being loaded, then setting some sort of "will_use_Max" flag that my framework can use to turn on/off certain blocks of code… But how can I check whether a framework is being loaded? J. On 2013-02-06, at 10:09 AM, Fritz Anderson <fri...@manoverboard.org> wrote: > On 6 Feb 2013, at 10:46 AM, James Maxwell <jbmaxw...@rubato-music.com> wrote: > >> I've created a framework to pull together a bunch of code I'm using >> regularly. When I include this framework in another project the project >> builds, and the methods do appear to get called, but I get "instance method >> <…> not found" warnings all over the place. The headers are all imported in >> my framework's master header, and they're all public (as is the master). > > "in my _framework's_ master header" - and is that header #imported in your > application code, for instance in the .pch file? > >> >> So, basically it works, but Xcode is warning me that it might not… Any idea >> why? Something in the project configuration? > > -- > Fritz Anderson > Xcode 4 Unleashed: 4.5 supplement for free! > http://www.informit.com/store/xcode-4-unleashed-9780672333279 > _______________________________________________ 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