On 11 Aug 2012, at 20:20, Mike Abdullah <cocoa...@mikeabdullah.net> wrote:
> > On 11 Aug 2012, at 13:55, "Gerriet M. Denkmann" <gerr...@mdenkmann.de> wrote: > >> I have an app which, when I first use File → Open..., writes: >> "2012-08-11 19:48:16.710 MyApp[5380:303] *** WARNING: Method >> userSpaceScaleFactor in class NSWindow is deprecated on 10.7 and later. It >> should not be used in new applications. Use convertRectToBacking: instead." >> >> I asked Xcode about "userSpaceScaleFactor" but got: "No Results Found". >> Which I think is correct. > > What exactly do you mean by "I asked Xcode"? It's certainly there in the 10.7 > and 10.8 docs! > I used the global Find in Xcode to find out where in my code this offending method was called. Xcode (and I) both think that this message is never sent in my code. Then I set a symbolic breakpoint (as suggested by Lee Ann Rucker - Thank you! ) at -[NSWindow userSpaceScaleFactor] and got the following backtrace: * thread #1: tid = 0x2903, 0x00007fff96d3cfbc AppKit`-[NSWindow userSpaceScaleFactor], stop reason = breakpoint 2.1 frame #0: 0x00007fff96d3cfbc AppKit`-[NSWindow userSpaceScaleFactor] frame #1: 0x00007fff91b3c85c FinderKit`-[FIFinderViewGutsController windowState] + 327 frame #2: 0x00007fff91b36ece FinderKit`-[FIFinderViewGutsController _internalSetTargetPath:withViewStyle:] + 752 frame #3: 0x00007fff91b363c6 FinderKit`-[FIFinderViewGutsController setTargetNode:withViewStyle:] + 495 frame #4: 0x00007fff91b37a98 FinderKit`-[FIFinderViewGutsController deferredRetargetAndReloadForNode:] + 381 frame #5: 0x00007fff91b37e6b FinderKit`-[FIFinderViewGutsController urlResolutionCompleted:] + 158 frame #6: 0x00007fff8fa62b8a CoreFoundation`_CFXNotificationPost + 2554 frame #7: 0x00007fff93c07a76 Foundation`-[NSNotificationCenter postNotificationName:object:userInfo:] + 64 frame #8: 0x00007fff93c518a7 Foundation`__NSThreadPerformPerform + 225 frame #9: 0x00007fff8fa2f841 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 frame #10: 0x00007fff8fa2f165 CoreFoundation`__CFRunLoopDoSources0 + 245 frame #11: 0x00007fff8fa524e5 CoreFoundation`__CFRunLoopRun + 789 frame #12: 0x00007fff8fa51dd2 CoreFoundation`CFRunLoopRunSpecific + 290 frame #13: 0x00007fff8df1b774 HIToolbox`RunCurrentEventLoopInMode + 209 frame #14: 0x00007fff8df1b454 HIToolbox`ReceiveNextEventCommon + 166 frame #15: 0x00007fff8df1b3a3 HIToolbox`BlockUntilNextEventMatchingListInMode + 62 frame #16: 0x00007fff96763fa3 AppKit`_DPSNextEvent + 685 frame #17: 0x00007fff96763862 AppKit`-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128 frame #18: 0x00007fff969adae9 AppKit`-[NSApplication _realDoModalLoop:peek:] + 485 frame #19: 0x00007fff969addae AppKit`-[NSApplication runModalForWindow:] + 120 frame #20: 0x00007fff96bf6206 AppKit`-[NSSavePanel runModal] + 302 frame #21: 0x00007fff9666804a AppKit`-[NSDocumentController beginOpenPanel:forTypes:completionHandler:] + 287 frame #22: 0x00007fff9666789a AppKit`-[NSDocumentController beginOpenPanelWithCompletionHandler:] + 486 frame #23: 0x00007fff9660f6d7 AppKit`-[NSDocumentController openDocument:] + 367 frame #24: 0x00007fff96854219 AppKit`-[NSApplication sendAction:to:from:] + 342 frame #25: 0x00007fff969899ac AppKit`-[NSMenuItem _corePerformAction] + 406 frame #26: 0x00007fff9698969a AppKit`-[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 133 frame #27: 0x00007fff96988330 AppKit`-[NSMenu performKeyEquivalent:] + 271 frame #28: 0x00007fff969877f3 AppKit`-[NSApplication _handleKeyEquivalent:] + 829 frame #29: 0x00007fff96844a03 AppKit`-[NSApplication sendEvent:] + 4480 frame #30: 0x00007fff9675ac7a AppKit`-[NSApplication run] + 636 frame #31: 0x00007fff966ff656 AppKit`NSApplicationMain + 869 frame #32: 0x0000000100005fb2 MyApp`main + 34 at main.m:13 frame #33: 0x0000000100001e64 MyApp `start + 52 There does not seem much in this backtrace belonging to my app. What could I do to get rid of this warning? Kind regards, Gerriet. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com