If you've no experience of programming, then this is a very large first step. (More of a sheer vertical incline really.)
As such, you might want to take a step back and have a look a some basic (or indeed BASIC) programming tutorials. (Google is your friend.)
Alternatively, Apple has good online documentation regarding Objective C and the Cocoa (the language and framework that iPhone applications are written in.) A good place to start for this would be Apple's Introduction to The Objective-C Programming Language.
Basically you need to send a magic packed as described here, to do that you'll need basic programming knowledge and some knowledge on socket programming, here is a good book on the subject. There are numerous examples of that.
You'll need an understanding of bsd sockets as well as the user interface kit framework to put the necessary controls on the screen.
Or of course download an existing free app like this one which does it already, automatically detects your mac address, and also tells you whether your machines are on or off:
发布评论
评论(3)
如果您没有编程经验,那么这是非常大的第一步。 (实际上更多的是纯粹的垂直倾斜。)
因此,您可能想退后一步,看看一些基本(或实际上是 BASIC)编程教程。 (Google 是你的朋友。)
或者,Apple 有关于 Objective C 和 Cocoa(iPhone 应用程序编写的语言和框架)的良好在线文档。一个好的起点是 Apple 的 Objective-C 编程语言简介。
If you've no experience of programming, then this is a very large first step. (More of a sheer vertical incline really.)
As such, you might want to take a step back and have a look a some basic (or indeed BASIC) programming tutorials. (Google is your friend.)
Alternatively, Apple has good online documentation regarding Objective C and the Cocoa (the language and framework that iPhone applications are written in.) A good place to start for this would be Apple's Introduction to The Objective-C Programming Language.
基本上,您需要按照此处所述发送魔法包,以执行以下操作您需要基本的编程知识和一些有关套接字编程的知识,这里有一本好书主题。有很多的例子。
但最终也许我可以说服您购买几个 iPhone 应用程序 正是这样做的,或者获取 免费的?
Basically you need to send a magic packed as described here, to do that you'll need basic programming knowledge and some knowledge on socket programming, here is a good book on the subject. There are numerous examples of that.
But in the end perhaps I could persuade you to purchase one of several iPhone applications that do exactly that, or grab the free one?
您需要了解 bsd 套接字以及用户界面套件框架,才能将必要的控件放在屏幕上。
或者当然可以下载一个现有的免费应用程序,例如这个应用程序,它已经可以自动检测您的 Mac 地址,并告诉您您的计算机是否打开或关闭:
http://itunes.apple.com/us/app/wake/id396566137?mt=8
祝您的项目一切顺利。
You'll need an understanding of bsd sockets as well as the user interface kit framework to put the necessary controls on the screen.
Or of course download an existing free app like this one which does it already, automatically detects your mac address, and also tells you whether your machines are on or off:
http://itunes.apple.com/us/app/wake/id396566137?mt=8
All the best for your projects.