Re: Question about NSObject based Class & delegates

2017-08-18 Thread Jean-Daniel
Why are you using Implicitly Unwrapped Optional (IUO) for your instance variables ? This is the best way to get crashes like you do. IUO should only be used for very specific cases (IBOutlet) > Le 14 août 2017 à 20:59, Eric E. Dolecki a écrit : > > I have a custom class. I want to use some del

Re: Question about NSObject based Class & delegates

2017-08-14 Thread Eric Dolecki
, August 14, 2017 6:40:14 PM To: Eric E. Dolecki Cc: cocoa-dev Subject: Re: Question about NSObject based Class & delegates That should work. What’s the crash (backtrace, other messages?) —Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: Question about NSObject based Class & delegates

2017-08-14 Thread Jens Alfke
That should work. What’s the crash (backtrace, other messages?) —Jens ___ 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.

Question about NSObject based Class & delegates

2017-08-14 Thread Eric E. Dolecki
I have a custom class. I want to use some delegation in it. How do I go about this - currently this crashes when I assign delegates to self. class AudioRecordingManager: NSObject, AVAudioPlayerDelegate, AVSpeechSynthesizerDelegate { let fileName = "demoRecording.m4a" var messageToSpeakAft