xcode

NSLog and Core Data

I have three Classes for which I am extending NSManagedObject (I know this isn't required but I wanted the property notation). Theses Classes are QuestionSet, Question and Answer. My data model is setup so that there's a many to many between them like so: QuestionSet <<->> Question <<->> Answer. I load up everything from a server and it ...

Most efficient way to do 22 different builds

I'm getting close to finishing my first relatively simple Xcode project (a custom installer) and I need to do 22 builds. Yes that wasn't a typo! What's different on each build is the PRODUCT_NAME, a source file in the bundle Resources folder and a variable that says whether the software is a trial version or not. From what I've read so...

Using arguments in XCode

I am trying to do something similar to this tutorial http://www.cprogramming.com/tutorial/c/lesson14.html Where I get the title of the file to be opened, and the number of lines of that file to be printed at a time. I am having trouble on what I would put in my command line arguments. For example, do I need to put the name of my progr...

Aspell Spell Checker on iPhone?

I've managed to compile the aspell as a static library for iPhone. I've the libaspell.a file and included it in my xcode project as a framework. Does anybody know how to use their c/c++ api for iphone? Is there any sample or example somewhere on the net? Thank you for any feedback in advance, John ...

Two-way communication?

Hi, Now currently trying to combine a client and server application together so that the program itself can send and receive. I'm using NSNetservice for this program in xcode and anyone can teach how to make it like if I run the same program at different mac computer, one of the program will run as client another will be server and then ...

warning: invalid receiver type +sqlite3

I am programming an Xcode iPhone app and utilizing sqlite. In an effort to delete all rows from a table, I receive the warning above when I build my code. Does anyone have any suggestions on how to fix this? Thanks - (void) deleteData { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, ...

How to check the URL of a WebView?

I have a Subview that load a Webview. In this Webview I load a file HTML locally in the Documents folder of my App. I need to check if the webview load another HTML file. Specifically: 1) Webview load "index.html" locally in my Documents folder 2) After 7 days a Javascript load another page with "location.href= "index2.html" ", 3) When I...

sound and Nstimer stopped when iphone is in deepsleepmode?

I am creating an application in which I'm using nstimer and avaudioplayer to play sound,but both sound and timer stops when phone is in deep sleep mode.how to solve this issue? here is the code to play audio -(void)PlayTickTickSound:(NSString*)SoundFileName { //Get the filename of the sound file: NSString *path = [NSString stringWithFo...

UITableViewCell Accessory Type Checked on Tap & Set other unchecked

Hello, Every one. I am confused a little bit about settings table view cell accessories. I have fixed two sections in my table Home Office What I want is as follow.... When User tap any of the cell Cell gets selected & I want to set checked (set uitableviewcell accessory type -checked of tapped cell ) And also all other cell's...

JSON framework w/o hidden APIs?

Given all the issues around hidden APIs and Apple now checking for them before releasing anything into the app store, how can you be sure if a particular framework is using hidden APIs? For example, I like the Google JSON framework: http://code.google.com/p/json-framework/. I have no idea if they are using hidden APIs. What else is th...

Change XCode default from relative to XCode folder?

I'm really really tired of other users having project errors because XCode's default class reference type is "relative to XCode folder." I know you can change it to "Relative to Enclosing Group," which is what our project is, but anytime someone creates a new classfile and forgets to change the reference type afterwards (frequently) or a...

Using CATransition with multiple Xib files on Iphone

I've been following this tutorial(www.vimeo.com/1450817) on using Multiple XIB files and I wanted more Transition animations besides flipping and Curling. I've also came across the CATransition class and I wanted to use it but all the tutorial that I've seen with it shows how to use it only if there are views in the same XIB file. so f...

Accessing classes in .a library file?

How do I access any classes in a library when all I have is the .a file? I've included the -ObjC linker flag and added the .a file to my project. Still, none of the classes appear in code hints. ...

How do I access the UITableView in the XCode "Navigation Based Application"

This "wizard" gives me a tableview to work with when I build and run. RootViewController is subclassing UITableViewController. Opening up the XIB, there is a table view, but what is the name of the tableview instance being displayed? I'm trying to reload the tableview after a receiving data from an asynchronous URL request and I don't ...

HIghlighting the text in PDF document iPhone xcode

Hii friends, i am developing a e Book using a web view where i am loading the web view with PDF document.Now i want to develop the search functionality but i am not unserstanding how to implement it.So kindly give me a solution, Thanks in advance. ...

What is a (XCode) SVN repository and how to use it

Setting up SVN using Apple Developer Connection manual (http://developer.apple.com/mac/articles/server/subversionwithxcode3.html). Regardless of it, I managed to setup SVN repository on local harddisk and even connect to it. Problem: would like to put several non-related projects under one repository. How to do that with XCode? For now ...

Anyone used libvlc on Mac?

Edit I've been able to simplify the reproduction of the error: When trying to build this sample: $ cc example.c -arch i386 -lvlc.2 -L/Applications/VLC.app/Contents/MacOS/lib/ -I/Applications/VLC.app/Contents/MacOS/include/ -o example $ ./example dyld: Library not loaded: @loader_path/lib/libvlc.2.dylib Referenced from: /Users/fran...

MacOS - howto change the SYSTEM temp folder (programatically) ?

we need to change the default SYSTEM temp folder for our multiplatform application. The systems default call for getting the SYSTEM temp folder should return the folder we have specified. On MS-Windows this is GetTempPath(). On MacOS the function is called NSTemporaryDirectory() I think. We need to do this because we are running multip...

xcode 3.2 + iPhoneOS 2.2.1

Anybody have any luck with building for iPhoneOS 2.2.1 with snow leopard / xcode 3.2? I tried installing the packages from the xcode dmg (it comes with them), but now I can't seem to get around the "Stdarg.h: No such file or directory" problems. This only happens when I build for the simulator, not when I build for the device. Anybo...

Redrawing NSCollectionView on Scroll Causes Breakup of Graphics

I have a minor irritant in an NSCollectionView in which the NSCollectionViewItem's break up visually when I scroll the window. The rate of breakup depends upon the rate of scrolling. For example, if I scroll slowly the breakup occurs more often. Fast scrolling less so. It appears that the problem is when the custom NSView of the NSColle...