Can't find "CorePlot?-CocoaTouch?.h" ! Interface Builder won't recognize "CPLayerHostingView"

79 views
Skip to first unread message

Jens

unread,
Mar 12, 2010, 3:59:23 AM3/12/10
to coreplot-discuss
Hi:
The setup description on http://code.google.com/p/core-plot/wiki/UsingCorePlotInApplications
doesn't work for me on iPhone 3.1.3 with XCode 3.2.1 ! I setup the
user header search path to the relative path to "framework" folder.
But Xcode can't find "CorePlot?-CocoaTouch?.h" ! Interface Builder
won't recognize "CPLayerHostingView" as well.

- Jens

Drew McCormack

unread,
Mar 12, 2010, 4:02:00 AM3/12/10
to coreplot...@googlegroups.com

It definitely works, because others are doing it, so something must be wrong with your setup. Can you build CPTestApp for iPhone? If so, look at the Target settings there and compare them to what you have.

Drew

Jens

unread,
Mar 12, 2010, 4:17:32 AM3/12/10
to coreplot-discuss
Yes, CPTestApp builds for iPhone. But not my project. I tried relative
and absolute both user header search path and header search path... No
luck. This might be more a XCode problem, as usual, but I'm wondering
if I am the only one with these probs...

-Jens

On 12 Mrz., 10:02, Drew McCormack <drewmccorm...@mac.com> wrote:
> > Hi:
> > The setup description onhttp://code.google.com/p/core-plot/wiki/UsingCorePlotInApplications

Drew McCormack

unread,
Mar 12, 2010, 4:21:06 AM3/12/10
to coreplot...@googlegroups.com
Are you setting the paths in your project root settings, or in your target? Better to use the target.
Also, look at the actual compile commands that Xcode is using, and see if you can see whether the paths look right there.

Drew

> --
> You received this message because you are subscribed to the Google Groups "coreplot-discuss" group.
> To post to this group, send email to coreplot...@googlegroups.com.
> To unsubscribe from this group, send email to coreplot-discu...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/coreplot-discuss?hl=en.
>

Jens

unread,
Mar 12, 2010, 4:39:33 AM3/12/10
to coreplot-discuss
I tried setting both target and project header search path. I checked
the compile command and the search path doesn't seem to show up
there... Don't know what XCode is doing...
No luck.

Drew McCormack

unread,
Mar 12, 2010, 4:53:37 AM3/12/10
to coreplot...@googlegroups.com
Try clearing the search path altogether, and starting again.

Drew

Jens

unread,
Mar 12, 2010, 5:04:42 AM3/12/10
to coreplot-discuss
Ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh... I was in debug mode and
incidentally set to release mode and then it worked!! :))
Problem was, while openening the target information the release mode
was set automatically, even in a new project starting in debug mode.
The header search path on the target was only set on release mode!!!

I will never overlook this dropdown again in target information
dialog!

Thanks anyway!

-Jens

Jens

unread,
Mar 12, 2010, 2:03:54 PM3/12/10
to coreplot-discuss
Before we close this thread, maybe someone can explain why interface
builder _still_ doesn't recognize "CPLayerHostingView" !
The message is: "Interface Builder won't recognize
"CPLayerHostingView" ".

The relevant code piece is :
....
CPLayerHostingView *hostingView = (CPLayerHostingView *)self.view;
hostingView.hostedLayer = graph;
....

----->
This leads to a bad access on "hostingView" because a UIView is
returned instead of CPLayerHostingView
*** -[UIView setHostedLayer:]: unrecognized selector sent to
instance

I already dragged the CPLayerHostingView.h file to the IB builder
window and created a UIView of class "CPLayerHostingView". But no
luck...


-Jens

Reply all
Reply to author
Forward
0 new messages