Re: app with MDquery won´t launch in 10.3
Re: app with MDquery won´t launch in 10.3
- Subject: Re: app with MDquery won´t launch in 10.3
- From: email@hidden
- Date: Wed, 27 Apr 2005 15:53:14 +0200
thanks for all the answers,
i simply forgot to add the weak-linking option for CoreServices
framework as the target build option.
works now.
;-)
tom
On Apr 27, 2005, at 1:54 PM, Aurélien Hugelé wrote:
On 27 avr. 05, at 11:30, j o a r wrote:
If you plan to develop an application on Mac OS X 10.4, that
should run on Mac OS X 10.3, you need to use the Cross Development
SDK (it's a custom install with the Xcode dev tools). Are you
using the Cross Dev. SDK already? If not, please try that first,
and come back to the list if you still have any questions later.
That's not a solution here : using 10.3.9 SDK blocks the use of
10.4 API. MDQuery are typically 10.4 only and would not even
*compile* on 10.4+SDK10.3.9
Also, please check the online Cocoa web sites / mailing list
archives for discussions on how to target multiple OS releases.
There are a lot of tips and tricks that you should be aware of.
<http://developer.apple.com/technotes/tn2002/tn2064.html>
<http://developer.apple.com/documentation/MacOSX/Conceptual/
BPFrameworks/Concepts/WeakLinking.html>
j o a r
On 2005-04-27, at 11.18, email@hidden wrote:
i have written an application that worked fine under 10.3.
now with 10.4 i added a feature that links against coreservices
framework
to use a MDQuery in one method (that will not be called on 10.3).
i did set the build target to 10.3 but the resulting application
will not even
launch on 10.3.
console.log shows an error:
undefined reference to _kMDItemPath expected to be defined in AppKit
i had the same problem, (i hope you'll not use
MDQuerySetSearchesScope() function which is not declared weak...)
the simplest solution is to use @"kMDItemPath" instead of
kMDItemPath... I know it is risky since apple may change the
contents of kMDItemPath... but this is simple.
You'll probably have some other problems with MDXXX symbols
(MDQuerySetSearchesScope() is clearly the most difficult to weak
link...), you can email me if needed...
how can i make my app still run under 10.3. ?
what am i doing wrong?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gumitech.com
This email sent to email@hidden
----------------------------------------------
check out my unixkitten blog:
http://freeridecoding.net/unixkitten
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden