Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Professional Swift
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 23rd, 2016, 07:03 PM
Registered User
Join Date: Jan 2016
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 07:06 PM..

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

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.