I have this XML file that I have imported into Cocoa and want to modify one value. How do I do that ? There don't seem to be any good examples.
I imported this file into Cocoa ( works properly )and now want to change the value of imp, before I transmit it to a server. How would I go about doing this ? Thanks
<?xml version='1.0'?>
<...
Here's an XML file I want to import into Cocoa:
<?xml version='1.0'?>
<Root xmlns='http://www.abc.uk' version='1.0' name='full'>
<child1 version='2.0'>
<value1>
<user>abc</user>
<pass>xyz</pass>
</value1>
</child1>
<child2>
<imp>12345</imp>
</child2>
</Root>
No...
I am currently looking into solving the problem with the inability to quickly create new files in the Finder. I will open source what I write because I think the Mac community needs this solved.
On Windows, you can right-click, create new text file.
OS X, you should be able to do this with a service which would work like this:
Right-...
In an XCode project that has a lot of h and m files, how do you find out which file gets executed first?
...
I have made a custom object called students that has two nsstring object. One is for the name and the other for the student id. If I try to pass the custom object to something that takes nsstring, it doesn't work. I want to pass the name. How can I do this?
...
I'm going to create iPhone and Mac apps and wonder if there are benefits of creating iPhone and Mac apps with Cocoa over Sproutcore + Phonegap/Titanium?
I'm not doing any game or high performance related software.
If I learn Cocoa I could only create apps for iPhone, iPad and Mac. But if I use Sproutcore for web development with Phoneg...
Hello!
I’m developing a Mac OS X screensaver that uses WebView. WebView loads flash with a map. I want to let a user move the map and resize it (flash map has appropriate controls). I’ve redefine mouseMoved: method so the screensaver does not exit on mouse move. But the mouse cursor is still hidden. It’s visible only on mouse drag. I’ve...
I am using an NSTokenField as a way for users to enter tags. Everything works fine and it hooks up with CoreData managing the tags both when the user adds or deletes a tag.
I recently added logic so that the NSTokenField would resize vertically as the user adds tags and they break to the next line using Andrew Bowman's IFVerticallyExpan...
I have a NSLevelIndicatorCell embedded as a column in a TableView using Core Data / Bindings. This works fine, but I'm looking for a way to "reset" the LevelIndicator to 0 (no stars selected.) This would preferably happen when the user double clicks on the level indicator or clicks on the single selected star when its selected (ie, to ...
I'm trying to implement a view controller for a custom NSOpenGLView based view (this is Cocoa, not Cocoa Touch).
The view is contained within a NIB loaded window but it does not have its own NIB. In fact the window contains multiple instances of the view.
I want to route mouse events to the controller instead of to the view. I would ...
Hey all,
I was wondering if there was a way to write a Cocoa app that listened for OS system events such as an application launching, a window switches, etc, etc. My thought was to watch [NSNotficationCenter default] for messages but so far I haven't been able to find much. Does anyone have any suggestions?
Thanks!
...
What is the best way to create an NSButton with a custom background image, that is able to have variable width, without making the corner bezel look stretched? I know there are convenience methods to do this with UIButton: http://jainmarket.blogspot.com/2009/04/create-uibuttonbutton-with-images.html but I haven't seen anything similar i...
I don't want to go the full rubyobjc, how would I be able to use a few ruby-terms in my cocoa/objective-c code?
The reason I want to switch is because I really like ruby's syntax. It's awesome!
If it's not possible, then I'm wondering if rubyobjc is good...
Unfortunately I've heard that when using rubyobjc there isn't a nib/interface ...
Hi,
I think i'm missing something really basic here. If I do this with a legal URL/path which I know exists:
NSImage* img = [[NSImage alloc] initWithContentsOfFile:[[selectedItem url] path]];
NSLog(@"Image width: %d height: %d", [img size].width, [img size].height);
then I get reported to the console that the width is -2080177216 and...
Hello,
I was testing my application and suddenly it had EXC_BAD_ACCESS. Now this has become a semi-regular thing, happening on some builds and not others. It also spits out lots of errors in the debugger such as objc_msgSend_vtable5 What could cause such a weird issue like this?
...
I am trying to parse an XML to extract values of certain variables. Here's an example:
<?xml version='1.0'?>
<Main xmlns='http://www.abc.uk' version='1.0' name='full'>
<child1 version='2.0'>
<value1> xyz </value1>
<userinfo>
<name> joe </name>
<pass> joepass </pass>
</userinfo>
</child1>
</Root>
Ques...
How do you use the debugger in XCode to see if a variable is nil?
...
In the following code, I am able to check with the debugger the values of self and childView.
[self.navigationController pushViewController:childView animated:YES];
However, I am not able to see the value of self.navigationController. How can I check if it is nil?
...
Hi all,
I am developing an iphone project in which I have to use Walrus S3 of Eucalyptus which my client has asked to use. It is similar to Amazon S3.
He has provided me a url for storing buckets and objects just like there is a url in Amazon S3.
I am using the S3 classes from the following link:
http://allseeing-i.com/ASIHTTPRequest/S3...
I'm using Breakpad to send error reports when my app crashes.
Now I tried to follow the wiki but the information there is somewhat lacking. I just can't figure out what to do with the generated symbol dump files.
I found this tutorial but it doesn't mention those dump files at all.
And when I include the Breakpad framework in my app, ...