• 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
Re: Framework methods not recognized
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Framework methods not recognized


  • Subject: Re: Framework methods not recognized
  • From: James Maxwell <email@hidden>
  • Date: Wed, 06 Feb 2013 16:09:55 -0800

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 <email@hidden> wrote:

> On 6 Feb 2013, at 10:46 AM, James Maxwell <email@hidden> 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 (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


References: 
 >Framework methods not recognized (From: James Maxwell <email@hidden>)
 >Re: Framework methods not recognized (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: Close box not showing as dirty when the doc says it's dirty
  • Next by Date: Re: Warning users when editing multiple items
  • Previous by thread: Re: Framework methods not recognized
  • Next by thread: iOS TVC graphic customization +
  • Index(es):
    • Date
    • Thread