modifying to an xml file cocoa
Hi, In Cocoa, how can i modify an xml file and save the same for future use. ...
Hi, In Cocoa, how can i modify an xml file and save the same for future use. ...
Hello everybody, If i declare an NSArray with alloc & retain in single sentence then should i release the NSArray object twice (i.e. [arrayObject release] 2 times) ? ...
Hi, simple existentialist question that google can't answer me: When and NSOutlineView send the message outlineView:setObjectValue:forTableColumn:byItem: to its data source, will it always reload its data? I have [sourceList reloadData]; as the last line of that method's implementation, but it doesn't seem to be necessary. Cheers ...
Hello everyone. I have developed an iPhone app which stores photos in the /Documents directory of my app. I would like to add a feature which gives to the user the opportunity to transfer those pictures to his/her PC or Mac. I don't really know how to do that. What is the best way, using Bonjour, bluetooth, or directly USB (if it is p...
I have a vertical split view (actually BWSplitView) with two subviews. One of them should keep its width while window is resizing and second changes its width automatically. I configured it in Interface Builder and everything works great until I tried to change one of subviews programically using NSView's replaceSubview:with: method. Aft...
I want to respond to a certain type of new window being opened by an external application. I have some experience finding applications and windows currently open (system wide) using some of the carbon functionality, so could theoretically just check every few seconds. This would require getting a list of all open windows and checking i...
Sorry for the clumsy title. Imagine a simple UI to display the first names of a person's children... As I initially only had one Person, I created an array controller and bound it to appDelegate.person1.children - this worked fine, as did binding a table column to display the first names. However, I have since extended my program so t...
I am wanting something similar to how iWork has the template selection screen for Pages when you can select different templates, and each view contains different info has difference sizes etc. I have tried subclassing NSCollectionView and determining which view to display using the newItemForRepresentedObject method (as opposed to using...
If I have several OS-X Terminal.app windows open, how can I move one Terminal window to another space? I'm happy to use any scripting or programming language to achieve this, but would prefer AppleScript or calls to standard frameworks. (Note this is to move only one window of an application not all windows.) ...
I am attempting to download a URL using NSURLDownload, but it does not start downloading. Before continuing it must be said that I am using GNUStep for this. The outline of my project is as follows: MyClass.h: @interface MyClass : Object { } -(void)downloadDidBegin:(NSURLDownload*)download; -(void)downloadDidFinish:(NSURLDownload*)d...
a scenario is below. I made two Controllers, A tableViewController, B viewController and C ScrollView. A tableViewController has cell that is entering to B viewController. and B viewController has C scrollView that is B's front View. C scrollView has object of NSURLConnection. and this functioned to download an image. ( A -> pushViewC...
Here is this question version with images. I can't post it because of Stackoverflow policy concerning spam. Hello! I'm learning Cocoa, and I've got a problem: I would like to bind the content of an NSMutableArray to an NSTableView, with bindings. I read many documentations about them, but I can't manage to make them work (nothing is di...
Background I want to access the cache of Chrome and Firefox in my Cocoa application. I need to get the HTML for pages accessed recently. Safari is a piece of cake - all this information is available in SQLite data stores, but not so in Chrome and Firefox. The Problem For Firefox, the cache is in /Library/Caches/Firefox/Profiles/xxx.de...
Hi, When I fetch the source of any web page, no matter the encoding I use, I always end up with &# - characters (such as © or ®) instead of the actual characters themselves. This goes for foreign characters as well (such as åäö in swedish), which I have to parse from "Å" and such). I'm using +stringWithContentsOfUrl: encoding: e...
Ok, this is more of a 'What the hell is going on?' than an actual problem. But given my relative inexperience with C, it could alude to greater problems. Basically, I'm parsing a wav file's header and grabbing out the values. In my header file I have the class variables defined: short channels; int sampleRate; int bytesPerSecond; short...
hi, it is possible to convert in iphone sdk (obj-c) a string to nsdate. thank you ...
Doc based, QTKit app. When saving, the new filename updates in the active window titleBar. I would also like to display the newly saved filename string in a textField, somewhere else on the opened doc. The code successfully saves the new doc. However the lastPathComponent string doesn't update. Please advise? thanks, Paul - (void)save...
Hi, I'm developing on a number of different machines and haven't used my laptop for a while. Today I tried to use for the first time after a couple of months only to find that Xcode steadfastedly refuses to open any .xcodeproj projects!? I ended up uninstalling the older (I think it was 3.1) Xcode installation and re-installing the lat...
Is it possible, to change the title of my application at runtime, which is displayed in the dock? ...
Hello, I have a multithreaded application that has many concurrent operations going on at once. When each thread is finished it calls one of two methods on the main thread performSelectorOnMainThread:@selector(operationDidFinish:) // and performSelectorOnMainThread:@selector(operationDidFail:withMessage:) When an operation fails, I l...