• 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
How to notify of an error...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to notify of an error...


  • Subject: How to notify of an error...
  • From: Tim Davis <email@hidden>
  • Date: Tue, 6 Nov 2007 10:27:03 -0500

Ok. I'm sorry if this sounds like a dumb question. Have only been doing Cocoa for about 3-4 months after switching from a Windows .NET environment, I don't know everything yet :)

I have a class that at some point reads a one line file and parses the data (No I can not change this, it's reading a file from a 3rd party app, not my own). Well, if for some reason it encounters an error how do I notify the calling class?

For instance: My main window controller will be the one that creates this object, the object will then at some point load the file, if it encounters an error how does it relay that information to the window controller so I can display a proper error message?

I thought about just passing the window controller to the initWith section but to me that just seems like a waste of memory...

In .NET I would use events, but I am not sure in Cocoa?

Thanks
-Tim
_______________________________________________

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


  • Follow-Ups:
    • Re: How to notify of an error...
      • From: "I. Savant" <email@hidden>
    • Re: How to notify of an error...
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: Re: Ruby mysql extension
  • Next by Date: Re: How to notify of an error...
  • Previous by thread: Re: Ruby mysql extension
  • Next by thread: Re: How to notify of an error...
  • Index(es):
    • Date
    • Thread