I feel like I'm missing something basic here, and I would appreciate it if you'd help me pull it all together.
Let's say that I have two view controllers... ViewAController and ViewBController.
If I wanted to show viewA, I would do this:
ViewAController *new_view = [[ViewAController alloc] initWithNibName:@"ViewAController" bundle:nil...
I have a piece of C code that is used from a C++ function. At the top of my C++ file I have the line: #include "prediction.h"
In prediction.h I have this:
#ifndef prediction
#define prediction
#include "structs.h"
typedef struct {
double estimation;
double variance;
} response;
response runPrediction(int obs, lo...
Given all the complex things I seem to cover every day, this appears to be a "what the heck am I doing wrong that seems to simple?" scenario!
I would like to subclass an NSTextField to change the background color and text color. For simplicity sake (and to help anyone who hasn't ever subclassed anything before), here is the example of m...
Hello,
How can I tell in objective-c coding if an integer is positive or negative. I'm doing this so that I can write an "if" statement stating that if this integer is positive then do this, and if its negative do this.
Thanks,
Kevin
...
is it possible to rename/refactor a class file and have it rename the actual file on disk? if so, how can i do this?
...
Hi guys,
Was wondering how to apply the CATiled Layer to a webView rather than a scrollView. Went through a lot of books as well as searches and found absolutely nothing regarding how to successfully apply a CATiled Layer to a webView. The basic functionality is to make the website rendering smoother on a webView. I'd really appreciate ...
I'm trying to figure out how I can call a function from another one of my classes. I'm using a RootViewController to setup one of my views as lets say AnotherViewController
So in my AnotherViewController im going to add in on the .h file
@class RootViewController
And in the .m file im going to import the View
#import "RootViewContro...
What is considered the 'standard' content of .gitignore file for an iPhone (Xcode) project?
PS: not sure if this needs to be a CW.
...
Can anyone give me a quick rundown of the color syntax meanings in xcode?
I am running into some problems and understanding the color coding I am sure will help me out. Currently I have some variables that are light blue and I think they need to be black but I am not sure of the difference?
masterViewController=[[UINavigationControlle...
I had a mutil windows cocoa porject. and now I want to change the order of opening windows , How to do it ? Thank you very much!
...
Xcode debugger shows garbage values all the time. I'm getting this console entry when debugging:
Data Formatters temporarily
unavailable, will re-try after a
'continue'. (Unknown error loading
shared library
"/Developer/Applications/Xcode.app/Contents/PlugIns/GDBMIDebugging.xcplugin/Contents/Resources/PBGDBIntrospectionSuppo...
For example, if I need Gtk+ include paths.
How to use pkg-config gtk+-2.0 --cflags in Xcode project settings?
...
I have found several great sources for iPhone icons, but are there any "stock" graphics available (free or paid) for other UI elements? For instance, a UITableView skin, background images, or custom control artwork.
...
Hi Folks,
I'm currently trying to follow the OpenGL intro guide here. I've pulled the finished project straight from the git repo on the site into a new Xcode project, but upon trying to build and run I get a "GL/glew.h: No such file or directory".
I've downloaded glew from the site, and run "make" and "make install". I can see 3 libGL...
Hello,
I want to write an "if" statement of an uiimageview to see which image is in the image currently. So if the uiimageview has this certain image, lets say "hello.png", then do this action. If it has "bye.png" then do this action.
Thanks,
Kevin
...
This very helpful answer explains how to include different files in different targets in an Xcode project.
My question is more of a philosophical one -- what conventions can I used to keep things organized?
Situations I am likely to encounter include the following:
Different versions of a class for different targets
Desire for differ...
Hi gang,
I am wondering if there is a way to translate the underlying matrix of a layer much like you can in ActionScript3.
In AS3 I can get the transform of a layer and shift it to, let's say, make the center of the layer the anchor point, rather than the upper-left corner.
The reason I ask is because I am trying to rotate a layer (c...
I'm newish to Objective-C and my memory management skills are not great. However, I haven't had a single problem until now. And now I've got big problems.
I've gone from zero crashes to crashing at random points, giving me either no console output or unrecognized selector errors on random types (-[NSCFSet isSameAsStop:]: unrecognized se...
Hi, I'm using two different tableviews in a single view, with each holding different information. The reason I'm using two tables is because I want one grouped table and one normal table. Currently, Im using the main viewController as a delegate for the grouped tableview and a separate class that is instantiated inside the main viewContr...
Hi,
I accidentally deleted my appDelegate window outlet and don't manage to resore it again.
My window based App has a TabBarController.
I am using xCode 3.1.3. See belows link to a screenshot of IB with appDelegate outlets.
http://www.rodiun.com/innflohmation/x23/IB-appDelegate.jpg
any hint is most appreciated,
my appDelegate code...