• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom view crashes app for some
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom view crashes app for some


  • Subject: Re: Custom view crashes app for some
  • From: "Louis C. Sacha" <email@hidden>
  • Date: Tue, 6 Jul 2004 23:13:12 -0700

Hello...

This is just a guess based on the trace and your comments about the problem occuring on 10,2,8, but it looks like your PSMPreviewView's initWithFrame: implementation is calling some other method that does not exist prior to 10.3.

You might want to go through your implementation of the initWithFrame: method and check the documentation for all the methods you call within that method to ensure that they weren't added in 10.3 Panther. The name of the offending method is probably also being logged to the console when the crash occurs, if you have access to machine running 10.2.8 or can't find the problem by checking the documentation and need to ask your users to check for you.

You could also (if you haven't already) compile against the SDK for 10.2.x, which should result in warnings for the offending method call, although that way of testing your code for older OS versions is far from foolproof.

http://developer.apple.com/documentation/DeveloperTools/Conceptual/cross_development/index.html


Hope that helps,

Louis


Hi all-

I am puzzled by the behavior of my shareware for some (but not all) of my users who have upgraded to the most recent release. The app includes a new custom view I have written (PSMPreviewView) and crashes immediately at launch with the following crashlog:

Thread 0 Crashed:
#0 0x97e54964 in _NSRaiseError
#1 0x97e547ec in +[NSException raise:format:]
#2 0x97e00ba4 in -[NSObject(NSForwardInvocation) forward::]
#3 0x9068c130 in _objc_msgForward
#4 0x000134a4 in -[PSMPreviewView initWithFrame:]
#5 0x930fdb50 in -[NSCustomView nibInstantiate]
...

John
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Custom view crashes app for some (From: John Pannell <email@hidden>)

  • Prev by Date: Re: erasing, redrawing NSBezierPath into and NSImage problem
  • Next by Date: Re: Strange printing issue
  • Previous by thread: Re: Custom view crashes app for some
  • Next by thread: Re: Custom view crashes app for some
  • Index(es):
    • Date
    • Thread