error when AppKit framework added in iphone application - iphone

i want to import in my iphone application, but i know this framework is not available in iphone sdk,but i need to use NSfileWrapper class in this framework, is this class also available in UIKit or others framework available in iphone sdk, thanks

No, NSFileWrapper is not available on the iPhone. Simply adding a framework that doesn't exist on the iPhone also won't get you anything. Your application is very limited on the iPhone with regards to accessing files and you basically have to use the classes and methods provided by the Foundation framework for the iPhone.

Related

How to use same Class"XY" for both ios and watchos3 with swif3

I tried to use a Custom Framework but it is not importing in the WatchApp Extension ->interfacecontroller.
In the ios App the Import statment work correct.
my question is :
how to use same classes in both targets(ios and watchos)
Creating a framework is indeed the recommended way to go. Just make sure your framework supports the arm7k architecture and also is compiled against the watchOS SDK.

How to use json classes in xcode 4.1

I want use nsjsonserialiazation class in xcode 4.1....How can I use it? Should I have to download some framework? If yes then where can I download it?
It's native and available as of iOS 5.0 and all you need to do to use it is to invoke it.
No need to download extra frameworks. It's actually part of the Foundation framework that makes up the very basis of Objective C applications.
You can find the documentation on Apple's web site.

How can I add NSSpeechSynthesizer Class Reference?

How can i add NSSpeechSynthesizer Class Reference.
I think it is in
/System/Library/Frameworks/AppKit.framework.
However there is no such framework name in framework window when I am clicking add existing frame work.
Can any one help me to do it.
VSSpeechSynthesizer is available for the iOS - but it is a private API and as such will likely be rejected from the app store. However you can still make apps for private consumption. I consider this a bug as it makes creating accessible apps for the partially sighted for instance, harder. I have filed Bug ID #: 9451650 Bug Title: VSSpeechSynthesizer is Private
I currently use Flite TTS in my App. All hopes fix on the Nuance integration in iOS5 being available as a public API.
AppKit framework is MacOS framework, not iOS, and so NSSpeechSynthesizer class is also available on Mac only.
Check this question on SO for the list of some 3rd-party text-to-speach engines available on iPhone
You can find it inside iPhone SDK
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk
/System/Library/PrivateFrameworks/VoiceServices.framework/VoiceServices

ConnectionKit & iPhone SDK

I'm still getting my feet wet with the iPhone SDK, but I'm wondering if it would be possible to get the ConnectionKit framework working for an iPhone app. I know it was developed for the desktop OS, so I'm not sure what sort of dependencies it has and whether or not it could be shoehorned into the iPhone OS.
In my case, I would like to use its FTP functionality, though having access to this entire framework could prove useful for future projects as well.
Any ideas or experience trying this?
In case it helps, here's the official ConnectionKit site: http://opensource.utr-software.com/connection/
The site was a little light on documentation.
The big question is what Cocoa classes it depends on. Since it is doesn't include any UI code, it should be based on Foundation classes. Foundation in Cocoa Touch is similar to, but not exactly the same as on OS X. Just check out what classes it uses.
The other obstacle is building the framework as a static library. Since the iPhone does not support frameworks/dynamic libraries, you have to build a static library to use it in your code.
That should help get you started.
There are two primary issues. One is static library and other is NSHost class that is supported by cocoa - but not cocoa touch. First one is doable - but the second one is doable if and only if you are familiar with Mac OS networking internals.

Accessing music library in iPhone OS 3.0

My requirement is that i want to access the list of all the songs from the iPhone library.
I have included the MediaPlayer Framework in my project. So how to get the list of all the songs ???
Thanks.
Check out apple's AddMusic sample code, it has the entire thing.
http://developer.apple.com/iphone/library/samplecode/AddMusic/