On 23 Oct 2015, at 18:21, Josh Freeman <gnustep_li...@twilightedge.com> wrote: > > Apparently on NetBSD, +load methods are called earlier in the app-bootup > process than on Linux & Mac - on those platforms, I hadn't seen any issues > from calling respondsToSelector: in +load. > > This'll be fixed in the next release of PikoPixel by delaying the > respondsToSelector: check until after the app loads. In the meantime, you can > probably get PikoPixel to run on NetBSD by commenting out the selector check > (PPAppBootUtilities.m, lines 42-49): > > /* > if (!selector || ![NSObject respondsToSelector: selector]) > { > NSLog(@"ERROR: Invalid NSObject selector, %@, in " > "PPAppUtils_PerformNSObjectSelectorAfterAppLoads()", > (selector) ? NSStringFromSelector(selector) : @"NULL"); > > goto ERROR; > } > */
There should be no problem with using -respondsToSelector: in +load for an NSObject subclass (it’s an NSObject method, not provided by a category). The problem is in the NSLog, which depends on NSString, NSLocale, and various other classes. David -- Sent from my IBM 1620 _______________________________________________ Gnustep-dev mailing list Gnustep-dev@gnu.org https://lists.gnu.org/mailman/listinfo/gnustep-dev