Re: Weak linking

2014-11-11 Thread Greg Parker
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

Re: Weak linking

2014-11-09 Thread Satyanarayana Chebrolu
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

Re: Weak linking

2014-11-07 Thread Greg Parker
> 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

Re: Weak linking

2014-11-07 Thread Satyanarayana Chebrolu
;>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

Re: Weak linking

2014-11-07 Thread Fritz Anderson
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

Weak linking

2014-11-07 Thread Satyanarayana Chebrolu
, 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

Re: Weak-linking a class

2010-06-27 Thread Ken Ferry
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 >

Re: Weak-linking a class

2010-06-27 Thread Graham Cox
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

Re: Weak-linking a class

2010-06-27 Thread Andy Lee
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

Weak-linking a class

2010-06-27 Thread Graham Cox
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

Re: Weak Linking Crash

2009-03-11 Thread Simone Manganelli
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

Re: Weak Linking Crash

2009-03-11 Thread Greg Parker
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

Weak Linking Crash

2009-03-11 Thread Simone Manganelli
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

Re: Weak Linking & using HiShape

2008-09-02 Thread Shawn Erickson
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

Re: Weak Linking & using HiShape

2008-09-02 Thread Eric Schlegel
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

Weak Linking & using HiShape

2008-09-02 Thread Pierre Guilluy
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

Re: weak linking

2008-03-30 Thread Gerriet M. Denkmann
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

weak linking

2008-03-29 Thread Gerriet M. Denkmann
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 {

weak linking of ImageKit framework

2008-03-13 Thread Daniel Dalquen
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