Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dipaliP

macrumors newbie
Original poster
Oct 6, 2008
28
0
Hi All
I want to draw bar chart using Xcode 10.5.
I am using Cocoa Touch Application for it. I am confused about how to use NSBezier, as the default framework bundle (iPhone OS2.0sdk) does not contain AppKit framework.
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
Do you mean NSBezierPath? I cannot find any reference in the documentation to NSBezier. Anyway you can't use any AppKit classes on the iPhone.
 

chbeer

macrumors member
Sep 22, 2008
82
0
Berlin
Maybe a new Forum makes sense: "iPhone Programming for Noobs" or better "iPhone Programming for the lazy ones" or "iPhone Programming Self-Help Group"... There all noobs can ask questions and other noobs may answer them.

Please stop asking questions like "how do I enter text in the Xcode editor" or "How do I start Xcode"? ... Aaah!!!! :eek:
 

dipaliP

macrumors newbie
Original poster
Oct 6, 2008
28
0
context variable not initializing.
As i am drawing it on view i haven't pushed CGContext.
I think there would be any other way to initialise context variable.

I am using following statement to initialize.
CGContextRef context = UIGraphicsGetCurrentContext();
 

dipaliP

macrumors newbie
Original poster
Oct 6, 2008
28
0
I am adding new view in nib file and displaying that view on some event of previous view's control. Its goes fine up to displaying that newly added view but control does not enters into view's drawrect: method.

When i tried it with default view it displays all lines.
 

dipaliP

macrumors newbie
Original poster
Oct 6, 2008
28
0
I am displaying a view on one view.
When click event occurs on first view i am replacing existing view with another view and i want to draw some lines on newly appeared view.
i called setNeedsDisplay, but its not reaching there in drawRect method.
 

dipaliP

macrumors newbie
Original poster
Oct 6, 2008
28
0
finally solved

The code whatever i wrote that was ok, but i didn't check nib file.
Now its solved........
Thanks everyone for your help...........
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.