NSBrowser simple example
Hi, I need to display the file system in the NSBrowser. Please provide with some sample examples. OR is there any other way to take path as input from the users. URGENT plz. Thanx a lot ...
Hi, I need to display the file system in the NSBrowser. Please provide with some sample examples. OR is there any other way to take path as input from the users. URGENT plz. Thanx a lot ...
I am trying to check whether a plist exists in my doc folder: if yes, load it, if not load from resource folder. - (void)viewWillAppear:(BOOL)animated { //to load downloaded file NSArray *docpaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [docpaths objectAtInd...
Hi! I have an old project in Xcode and I want to change the RootViewController files (.m, .h, .xib - a TableViewController) with a normal ViewController! Is it possible or I must restart a new project and import the old files? Thx a lot! ...
Hey Guys, im using a rotated UIPickerView to use it horizontal. This works fine so far. Now i want to get the View/Title of the "clicked" UIPickerView row. The Delegate gives me the opportunity to get the "selectedRow" when the Picker selects a row. I want no event while selecting it i need the event of clicking it. The funny thing is...
I've been asked by a client to develop an application that will allow the user to navigate between a series of views. It's best described as a book, with an interactive contents menu. I know the VERY basics of Objective-C but I have no idea how the views work together, how could I jump from one view to another at the click of a button? ...
Hello, I have a question, (Basically same as this one which remained UN-answered I'm writing some methods that call a JSON API, and receive a response, each method will create an HTTPRequest, but the data received will not be available in the method, but will be available in connectionDidFinishLoading. How can i use the data now? I h...
I am a registered Apple dev with the certificates, and mobileprofiles that i need. I have made several apps in xCode that I would like to test on my 3GS, I have registered my 3GS as one of my allowed devices but it still will not install giving the install prohibited error. The Xcode is set to same profile as my iphone has. Just dont ...
Hi, I made a UIScrollView, added a UIImageView to as a subView, set the viewForZoomingInScrollView: method to return the subView, set the UIScrollView's delegate to self in my viewDidLoad, set my ViewController to be a UIScrollView delegate, set the maxZoom to 5.00 in IB, and I still am unable to scroll I'm using the iPhone simulator, p...
I randomly get this error, and I can't figure out a way to fix it: the variables pane (top right) is blank, and the gdb "po" command can't print any variables. The "po" command doesn't even know about "self": The problem appears specifically for all methods in the MGMinimap class. Nowhere else. I can debug from A and see self and th...
I would like to make an application in which, when I press a button, one video starts playing, and when it finishes or when I press "done" button it should take me to a view different from the first one where I launched the video. ...
I'm getting some strange behaviour, and I'm wondering if a root cause of that behaviour might be selectRow (used to set which row in the picker wheel should be viewed as selected) causing didSelectRow (which I thought was only used for user input) to fire. I certainly can't come up with any other reason for code that should only be in d...
This is my first app being submitted to the app store, and I did everything according to the apple guide, but when I finally tried to build with the distribution configuration, I get one error and one warning. This is my build log of the error and warning, and I was wondering if anyone could tell me what is going on here. warning: Appli...
Hi everyone, I'm stuck here. I know how to copy and paste on the iPhone side of things but how can I copy contents from a textField to the global clipboard in OSX. I've been searching the web but there are really no examples. So let me explain in detail what I'm trying to accomplish. I have a NSTextField named helloField and I want to be...
Hello. I'm diving into iOS development and I'm using Xcode on a multi-monitor setup. Obviously I want to take advantage of the multiple monitors to view and edit multiple panes of source code, but I'm having a hard time figuring out how to enable vertical split views. In other IDEs, it's just an option you click in the "Window" menu. ...
I need to set a NSDate to a specific date, time and timezone for an iPhone App. The example code below works fine on iOS 4 as the setTimeZone was introduced with iOS 4. How could I easily set a NSDate to a date, time and timezone without using setTimeZone so it can be used on iOS 3.0 devices? NSDateComponents *comps = [[NSDateComp...
I have been working on a horizontal UIPicker, and I've finally gotten the picker and the labels on the picker to both display rotated. But, the issue I'm noticing now is that the labels display in low res with very visible pixelation. Playing with the font values seems to have no effect on the pixelation. I've included my code: //in vie...
I want to have conditional code in my iPhone app depending on configuration (Debug/Release/Distribution). I don’t think Xcode communicates the project configuration somehow to my code, e.g there isn’t a macro or such available, is there? The best solution I’ve come up with so far: in project settings, for each configuration, define a fl...
Hi, recently I joined two Xcode projects together. To get this thing to work, I had to alloc and initialize my view controller. self.myViewController = [[MyViewController alloc] init]; But why? In the other project I have the same code. The sole difference is hierarchy of the different views. I added a new view to the top (beginning)...
Hi, I had a look at instruments and I saw that the alloc increased the retain count by 1. So far everything clear. But the assignment of the class to my property also increased the retain count to 2. self.myProperty = [[MyClass alloc] init] Vs. MyClass *myCreatedVariable = [[MyClass alloc] init]; self.myProperty = myCreatedVariable ...
Hello world! Sorry if im asking something stupid but please dont shoot me down! I have done a little playing in xcode but nothing more than a button press counter kindof thing.. I was curious.. when developing with the retina display in mind you obviously produce higher resolutions png's and what not for the new display.. How would y...