Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Professional Swift
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Swift
This is the forum to discuss the Wrox book Professional Swift, 3rd Edition by Michael Dippery; ISBN: 978-1-119-01677-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Swift section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 23rd, 2016, 06:03 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2016
Location: Shasta County, northern California
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Red face Chapter 4 Timers example problem

In trying to run the Threads.swift example code from Chapter 4 in a playground, I get an error message. Something does not like @objc attribute (described on page 90,Listing 4-3.

Here is the error message:

Playground execution failed: /var/folders/gm/468ly9qd1yndc1yvfmmdpy240000gn/T/./lldb/36063/playground31.swift:5:2: error: only classes that inherit from NSObject can be declared @objc
@objc class SayFunction {

Any ideas? I'm using XCode 7.2 and Swift 2.1.1

Last edited by SRJoye; January 23rd, 2016 at 06:06 PM.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter 4 there is problem SHOOGN BOOK: Beginning ASP.NET 4 : in C# and VB 8 June 22nd, 2015 06:29 AM
Chapter 18 Advanced Timers dotnetPrimer BOOK: Professional JavaScript for Web Developers 2nd edition ISBN: 9780470227800 1 July 19th, 2011 09:14 PM
Passing parameters to timers tMesi BOOK: Professional JavaScript for Web Developers 2nd edition ISBN: 9780470227800 2 March 21st, 2009 07:09 PM
Timers in a Windows Service jaucourt VB.NET 2002/2003 Basics 2 June 18th, 2004 05:31 AM
c# timers donbes C# 0 June 19th, 2003 11:19 AM



All times are GMT -4. The time now is 08:55 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.