I have an Xcode project with (currently) about 300 files. Is there an easy way to reveal a specific file in the Groups&Files panel, assuming I remember the name of the file, but not where it is located?
I don't care if I open the file or not. But I do need to reveal it. In other words, I need the file's group to be opened in the Grou...
i have a MKmapview with two circles. MKCircleView is using for one circle and MKOverlayView for other circle. In MKOverlayView, CGContextAddArc is using for drawing circle. Both circle having same radius ie: 1000, but the circles showing different radius in MKMapview that means MKOverlayView circle is smaller than MKCircleView circle. Wh...
Hello,
I'm getting the following error:
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* +[NSString stringWithUTF8String:]: NULL cString'
on the line of code below:
NSString *aName = [NSString stringWithUTF8String(char*)sqlite3_column_text(compiledStatement, 1)];
I'm not sure whats going on here,...
I observed Android programmers using LogCat to see colored Debugger Console output. It looks like you can have different classes do their debug output in different colors. Is this possible when developing for iPhone?
...
Hi, I'm writing application that operates on black&white images. I'm doing it by passing a NSImage object into my method and then making NSBitmapImageRep from NSImage. All works but quite slow. Here's my code:
- (NSImage *)skeletonization: (NSImage *)image
{
int x = 0, y = 0;
NSUInteger pixelVariable = 0;
NSBitmapImageRep *bitm...
Hi,
We use subversion to keep track of our code, just sharing code between us two. However we encounter a problem when we both add or remove file at the same time before the next commit. It seems that whenever we mess with Groups & Files, project.pbxproj under the project package will be modified and subversion cannot take care of that....
With no developer interaction you can have a view resize itself to support an orientation, in many cases this is fine, but what if you need to change the layout of your UI objects to better suit the new orientation?
Apples answer is to:
Have two separate ViewControllers with xibs that reflect the desired layout.
Designate a master V...
How do you create a photo album coding an iphone app that appears in the photo albums that sync to iPhoto?
I can read and write media using the various classes (eg UiImagepickerController)no problems. Just wondering if that extends to being able to create albums also.
...
Are the permissions for the iphone/ipad simulator different from the device itself? I only ask because I'm experimenting with file I/O, and creating and then writing to my own temporary file fails, but creating and writing to, say, the Desktop on my Mac (from the iPad simulator) is completely okay.
Am I doing something wrong with my tem...
Hi,
I have created my iPhone App and i must do a document like javaDoc in java but i don't find anything with google.
I think that the comments have similar syntax but i'm not sure. (/* */)
Can you help me?
Thanks
...
I followed the instructions here to create a static library of an iPhone class library. I built it in release mode. When I include it in another project, reference one of the classes in Interface Builder and run it in the simulator, I get an error if I run in Debug mode but it works in Release mode.
I get the following error using the D...
Hi Guyz,
i have a problem that i have two lables,
1) will contain a long text
2) this will be just More button (link)
so i want that when the first text ends then the second label starts right from where it end. but the problem is that the text is variable so i could not find any way to make it dynamic.
example
text of first row
"t...
People seem to be coming up with links to download previous versions of Xcode (which I used here). Is there a page on apple.com that advertises these, or is this just secret knowledge?
...
example 1: ==> [{"name":"luxy"}]
example 2: ==> {"name":"luxy"}
Both example I got are valid json format...
in xcode... I write below:
[dictionary objectForKey:@"name"]
in example 2 I can get "luxy" but how come if I use example 1 then it fails?
is my xcode wrong?
...
Every now and then I start getting this error in the debugger constantly. Sometimes the debugger will flat out hang, some times it will pause for a minute. This is just when stepping through all objective-c code.
Any thoughts on what might cause it? I just started using a static library, and I'm stepping through static-library...
My question is, what directory does the NSFileManager start out in, I am really confused because when I run code to tell me what directory I'm in, it just outputs /. Also I can change directory to /private/var but not into /mobile and /mobile/applications which is where the application is. Bellow is my code.
NSString *currentpath;
fil...
I'm using xcodebuild to compile my project. I use this on the command line:
xcodebuild -sdk iphoneos4.0 -configuration Distribution
It returns with the regular build information scrolling by, then shows this:
** BUILD SUCCEEDED **
Bus error
The package is built fine, so I'm not sure what is causing the Bus error after a su...
I would like to conditionally enable the objc_exception_throw global breakpoint for my app, only when I am doing a Debug build (not when doing a Release or Distribution build).
Is there a way to specify this build condition in Xcode's Breakpoints window?
...
I have no idea what this error is about, the deadline for that application is tomorrow. I have no idea what is it about but it is refusing to compile. It is a giant project with over 150 source files and with about 20 3rd party dependencies.
Internal error occurred while creating
dependency graph:
-[PBXTargetBuildContext ]: unrec...
I know about cmd-double-click, and use it all the time, it's great. But is there an easy way to make Xcode simply tell me the type of a symbol in a popup or similar without having to jump away from my current position in code?
...