Register FAQ/Rules Forum Spy Search Today's Posts Mark Forums Read

Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate.

 
Go Back   Mac Forums > Apple Software > Mac Programming
TouchArcade.com - iPhone Game Reviews and News

Reply
 
Thread Tools Search this Thread Display Modes
Old Oct 10, 2009, 09:54 AM   #1
r00li
macrumors member
 
Join Date: Sep 2008
Core graphics - some questions

I am starting with some graphic applications and I have a few questions. I have some experience with iphone programming but not with mac so I have so trouble with some things.

Firs is how to create a view to actualy display something. I was looking at some source code that works and I tryed doing the same thing in interface builder but I can't get my view to show up. I allways get "app terminated with signal 5" from te debugger. And I can't figure that out.

The second one is when you have a view and after some action you want to load another view. I do that like this:
Code:
pogled_main *pogled = [[pogled_main alloc] initWithFrame:[self bounds]];
[super addSubview:pogled];
[pogled release];
What I don' know is how to release the current view. Or I can just let the garbage collector do its work?

The third one is how to load vector images into a NSRect? Can NSImage be used for this? because I need to resize the image based on the screen resolution and I think that the best way to do that is by using vector graphics - If I can do that which formats are supported?

And the last one - where to get some tutorials for core graphics? I found this:
http://www.cocoadevcentral.com/d/intro_to_quartz_two/. Anything else/better?
__________________
http://www.r00li.com
r00li is offline   Reply With Quote
Old Oct 10, 2009, 10:40 AM   #2
GorillaPaws
macrumors 6502a
 
GorillaPaws's Avatar
 
Join Date: Oct 2003
Location: Richmond, VA
Do a search for "drawRect:" --that's where the magic happens for drawing code. Also you will probably want to read the official Apple Docs.
__________________
Search MacRumors with:MRoogle
GorillaPaws is offline   Reply With Quote

Reply

Mac Forums > Apple Software > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:13 PM.

Mac News | Mac Rumors | iPhone Game Reviews | iPhone Apps

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 2002-2010, MacRumors.com, LLC