English 中文(简体)
IKImageBrowser 项目无法找到议定书声明
原标题:IKImageBrowserItem cannot find protocol declaration

除图像Kit课程外,XCode4的其他课程都是正确的。

在“IKImage”开始的“IKImage”课程和规程“没有发现”之后,它将对其中一些课程(例如IKImageBrowserView)进行汇编,但另一些课程甚至汇编成册,例如IKImageBrowserItem。

该局将自动完成其中的任何部分,甚至汇编其中的内容。

这似乎有所突破,但我不知道什么,我不知道如何确定。 总结:

  1. I m building against OS X 10.6 - according to Apple s docs, 10.5 includes these files
  2. I ve added Quartz framework
  3. I ve added Quartzcore framework
  4. I m importing: #import <Quartz/Quartz.h>

I ve checked the actual framework files from Apple, and the Quartz/ImageKit is clearly missing the headers that Apple s docs say should be present :(.

NB:在我的Xcode4安装中,没有发现或破碎其他东西——我开发S-X32和64个比照,PiandiPad指所有罚款。

Anything else I should be doing?

问题回答

你一定要把IKImageBrowserItem代表与你自己的阶层联系起来。

@interface MyOwnClass : NSObject/*<NSImageBrowserKit>*/ 

It s not possible, because the header ImageKit.h is not public.

然而,当你加入Quartz框架时,IKImageBrowserItem议定书已经与NSObject阶级挂钩,然后与你自己的阶层挂钩。

果 Apple使IKImageBrowserItem议定书成为类似议定书(图象Kit/IKImageBrowserView.m)。

@interface NSObject (IKImageBrowserItem)

事实上,该议定书是NSObject级的延伸。

你们必须直接执行IKImageBrowserItem协议的挑选者,以便执行本级协议。

@implementation MyOwnClass

- (NSString *)  imageUID
{
    /*your implementation*/
}

- (NSString *)imageRepresentationType
{
    /*your implementation*/
}

@end

etc ....

自治将发挥作用!





相关问题
XCode fails to deploy iPhone app to iPhone 3GS

So I built my iPhone app and it runs fine in the simulator so I wanted to deploy it to my iPhone for one last testing round before I go into open beta testing wiht my distribution profile. I did this ...

How can I "add existing frameworks" in Xcode 4?

I can t find the good old "Add existing frameworks" option. How do I do this? We re talking about Xcode 4 DP2 (in the context of iPhone development, as far as it matters...).

How to rename a project in Xcode?

There are some pretty horrible instructions out there for renaming projects in Xcode. Is there no easy way to do this?

Where did the script menu go in Xcode 4?

I always love the script menu from Xcode and the ability to automatically generate accessor methods definition und declaration. But it looks like in Xcode4 there is no such thing anymore. I know I can ...

Xcode 4 - Connecting Outlets

This page shows how easily I can connect outlets http://developer.apple.com/technologies/tools/whats-new.html in Xcode 4, but I can t get it. I right click and drag an outlet from the new ...

GCC to LLVM migration tips?

Xcode 4 comes with LLVM. As a casual programmer (i.e. download some open source projects and compile them on a mac via command line), is there any tips for the transition?

Building dependencies in Xcode 4

I have a project that has a dependency on a static library. In Xcode 3.2.3 the project that builds the library is setup as a direct dependency in the target settings so that the library is built ...

热门标签