That approach is not supported and will crash at runtime in some circumstances.
Nobody has tried to make a list of precisely which cases will and will not
work, so you're on your own here.
For example, if you code has a category on NSTableCellView then it will crash.
If your subclass of NSTable
Thanks Greg for your suggestions.
But I found something from
https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPF
rameworks/Concepts/WeakLinking.html
I have tried the way mentioned in that, so passed "-weak_framework Appkit²
in Other Linker Flags under Build Settings of the
> On Nov 7, 2014, at 3:54 AM, Satyanarayana Chebrolu
> wrote:
>
> Hi folks,
> We have an application, which is supporting from 10.5(Leopard) to
> 10.10(Yosemite). Inside the application, there is a custom
> framework(X.framework), which has some custom code for Appkit classes.
> Off late, d
;>saying that ³dyld: Symbol not found: _OBJC_CLASS_$_NSTableCellView².
>>
>> Understand that NSTableRowView, NSTableCellView are not existing on
>>10.5 and 10.6, so the subclasses should be weakly linked.
>>
>> Tried, by making Cocoa & X.frameworks as Weak linking(Opti
NSTableRowView, NSTableCellView are not existing on 10.5 and
> 10.6, so the subclasses should be weakly linked.
>
> Tried, by making Cocoa & X.frameworks as Weak linking(Optional) under Link
> Binary With Libraries section of the application target, but still the same
> issue. It se
, NSTableCellView are not existing on 10.5 and
10.6, so the subclasses should be weakly linked.
Tried, by making Cocoa & X.frameworks as Weak linking(Optional) under Link
Binary With Libraries section of the application target, but still the same
issue. It seems, I am missing something.
Should
See also <
http://www.sealiesoftware.com/blog/archive/2009/09/09/objc_explain_Weak-import_classes.html
>.
-Ken
On Sun, Jun 27, 2010 at 7:02 AM, Graham Cox wrote:
>
> On 27/06/2010, at 11:55 PM, Andy Lee wrote:
>
> > NSClassFromString()? Or maybe some objc_xxx runtime function?
> >
> > --Andy
>
On 27/06/2010, at 11:55 PM, Andy Lee wrote:
> NSClassFromString()? Or maybe some objc_xxx runtime function?
>
> --Andy
D'oh, of course. Just tired... ;-)
--Graham
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin r
e instead of NSMutableDictionary
> somewhere. The object is created as a singleton when it's first used, but I
> can't quite see how I should decide which class to make. I've read the
> weak-linking guide and it makes sense, but the example in there shows only a
> simple C
uld decide which class to make. I've read the
weak-linking guide and it makes sense, but the example in there shows only a
simple C function, not an Obj-C class.
I'm setting 10.6 SDK as my base SDK, but my minimum deployment target is 10.5.
Therefore NSCache will not be there on 10.5.
I th
ion anyway.
This workaround might help defeat the optimizer:
// was: if (&function != NULL) function();
void * volatile function_p = &function;
if (function_p != NULL) function();
OK, this seems to be the case. I found that the code that Apple
suggests in its Weak Linking doc
e.net/svnroot/d2x-xl
).
I've followed the instructions on Apple's website about weak linking
(see http://developer.apple.com/DOCUMENTATION/MacOSX/Conceptual/BPFrameworks/Concepts/WeakLinking.html
). Specifically, I've added "-weak_framework SDL_mixer" in my
Other Linker
uctions on Apple's website about weak linking
(see http://developer.apple.com/DOCUMENTATION/MacOSX/Conceptual/BPFrameworks/Concepts/WeakLinking.html
). Specifically, I've added "-weak_framework SDL_mixer" in my Other
Linker Flags build setting.
Here's the problem: weak li
On Tue, Sep 2, 2008 at 8:38 AM, Eric Schlegel <[EMAIL PROTECTED]> wrote:
> I believe the problem was also fixed in Xcode 3.1, so you might also be able
> to install 3.1 and associated SDKs and link against the 10.5 SDK in that
> release.
It must be because our product isn't bitten by this issue a
binding failed: Symbol not found:
_HIShapeCreateWithRect
How can I do to solve a problem like this and have an application that
uses weak linking and works on both platforms ?
This is due to a configuration error when the HIServices and HIToolbox
libraries were built in Leopard. You're
Hi there,
We're trying to compile our application so that it can run under 10.5 &
10.4 using weak linking (this is required for us other libraries). Our
software is based on wxWidget and so for the moment we're evaluating the
possibility of running the minimal sample from wxWid
On 30 Mar 2008, at 01:47, [EMAIL PROTECTED] wrote:
I use in some Cocoa app a weak linked library.
[...]
if (weak_function == NULL)
{
NSLog(@"%s weak_function %p NULL", __FUNCTION__, weak_function );
}
else
{
NSLog(@"%s weak_function %p non-NULL", __FUNCTION__, weak_function
missing
return noHave2;
}
Why is noHave1 always NO?
Next I copied some code from the Framework Programming Guide -
Frameworks and Weak Linking:
if (weak_function == NULL)
{
NSLog(@"%s weak_function %p NULL", __FUNCTION__, weak_function );
}
else
{
I am developing an app that should run on Tiger as well as Leopard. I
want to use IKSlideshow when running on Leopard, so I wrote a class
(let's call it MyDataSource) that implements the methods of
IKSlideshowDataSource, which is instantiated in the method that will
start the slideshow. Thi
19 matches
Mail list logo