• 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: Failure on unarchiving a NSBezierPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Failure on unarchiving a NSBezierPath


  • Subject: Re: Failure on unarchiving a NSBezierPath
  • From: "I. Savant" <email@hidden>
  • Date: Mon, 28 Apr 2008 12:34:30 -0400

>  You know what?  I don't think you've ever said that you know that
>  view.drawing != nil.  Check that.

  Though NSArchiver says this scenario would produce an exception,
NSKeyedArchiver does not seem to do the same (the documentation
doesn't say what will happen and a quick test with an NSBezierPath
shows that it indeed does not).

  In other words, you will get a valid archive (not nil and not an
exception) to save; it's just an empty one. So this suggestion is an
important one - you should definitely check to make sure you're not
trying to archive nil instead of an NSBezierPath instance.

  Regarding the other aspect of this post, the point that the OP
should fix the NSError bug has been well-made. Let's not turn this
thread into a fifty-message-long "I disagree that you disagree
<citation #302384>!" and "Yeah? well I disagree because you clearly
didn't understand <citation #302385>!" ... those only ever degenerate
into mud-slinging contests worthy of nomination for the 2008 Pedantic
Pontificator Awards. ;-)

--
I.S.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >Failure on unarchiving a NSBezierPath (From: an0 <email@hidden>)
 >Re: Failure on unarchiving a NSBezierPath (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: Re: Using an NSTableHeaderView as a Custom View
  • Next by Date: Re: Zip Files in Objective-C?
  • Previous by thread: Re: Failure on unarchiving a NSBezierPath
  • Next by thread: Re: Failure on unarchiving a NSBezierPath
  • Index(es):
    • Date
    • Thread