• 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
Two Compile Errors I can't seem to clear: Hillegass Book
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Two Compile Errors I can't seem to clear: Hillegass Book


  • Subject: Two Compile Errors I can't seem to clear: Hillegass Book
  • From: Amanda Rains <email@hidden>
  • Date: Sun, 30 Oct 2011 08:30:29 -0700

Running Xcode 3.2.6 
on Mac OSX 10.6.8 (Still on Snow Leopard)
on MacBook 

In Chapter 6 of Hillegass's Book "Cocoa Programming for Mac OS X Third Edition

Modifying the Speech Synthesis Program by adding the Table View of Voices.

On Page 96 
adding this line to the init method
[speechSynth setDelegate:self];
The compile yields the following error message   
warning: class 'AppController' does not implement the 'NSSpeechSynthesizerDelegate' protocol


ALSO
On Page 106 
the following line 
[tableView selectRow:defaultRow byExtendingSelection:NO];
The compile yields the following message
warning: 'selectRow:byExtendingSelection:' is deprecated (declared at /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableView.h:655)

Since these are warnings the program compiles and runs. 
The defaultVoice 'Alex' is selected in the Voice Table.
The text in the textField is spoken correctly
I can select a new voice like 'agnes'
But the voice does not change. 

I assume the warnings need to be dealt with to be able to change the voice.
I haven't a clue how to approach clearing the first warning (still a confused nuB)
I looked up the 'byExtendingSelection' (with an Option-Click)
I don't know what to do with the suggested changes from the deprecated code.

Please advise.


Amanda Rains
email@hidden

This message was generated on my Mac.



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Two Compile Errors I can't seem to clear: Hillegass Book
      • From: Michael Babin <email@hidden>
References: 
 >Printing the List of Warnings/Errors as seen within Xcode 4.2 (From: Amourine Tech <email@hidden>)
 >Re: Printing the List of Warnings/Errors as seen within Xcode 4.2 (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: (no subject)
  • Next by Date: Re: Two Compile Errors I can't seem to clear: Hillegass Book
  • Previous by thread: Re: Printing the List of Warnings/Errors as seen within Xcode 4.2
  • Next by thread: Re: Two Compile Errors I can't seem to clear: Hillegass Book
  • Index(es):
    • Date
    • Thread