0

I tried to add an NSHost method and XCode didn't recognize it.

Do you know why this happened?

Michael Petrotta
  • 59,888
  • 27
  • 145
  • 179
YosiFZ
  • 7,792
  • 21
  • 114
  • 221

3 Answers3

2

Your question is tagged with iPhone; NSHost is not available on the iPhone. NSHost is Mac OS X only.

Here is an alternative solution to using NSHost: Alternatives to NSHost in iPhone app

Community
  • 1
  • 1
Black Frog
  • 11,595
  • 1
  • 35
  • 66
2

NSHost is not supported for iPhone. Read apple's technical note

http://developer.apple.com/library/ios/#qa/qa1652/_index.html

saadnib
  • 11,145
  • 2
  • 33
  • 54
0

iPhone SDK does not support NSHost. But you can use this alternative Objective-C custom class instead.

Lukman
  • 18,462
  • 6
  • 56
  • 66