What's a good HTTP library for (desktop Cocoa and) iPhone? Should just have a good interface to the basics like HTTP headers, get/post values (request string creation, URL encoding/decoding), sync and async requests... preferably pure Obj-C implementation. NSURL* is somewhat lacking.
...
I am currently learning Cocoa. However I am coming from a traditional Sybase/Oracle background using Powerbuilder. Having been spoiled by the 'power' of a datawindow for may years, I not sure that coredata or sqllite will satisfy my needs and ideas.
Basically I'm looking for some good reference sites, books, or just plain old advice on...
If I were to write a commercial (=sold for money) app for Mac OS X (not iPhone) would it be wise to do so in Javascript with JSCocoa? I know Javascript by heart but next to nothing about Objective-C and it scares me. Any thoughts?
OTOH, I can always dive into Objective-C. But still, this looks like a nice shortcut. Or is it too good to ...
I have a Cocoa application I am building which contains an NSSearchField control. I want to enable a keyboard shortcut / key equivalent so when the uses presses COMMAND-OPTION-F, the search field gets focus.
However, after much searching, it is not clear to me what the best way to implement this is. There is not an option to set this fo...
This is my table view delegate:
- (void)tableView:(NSTableView *)tableView willDisplayCell:(id)aCell forTableColumn:(NSTableColumn *)tableColumn row:(int)row
{
id theRecord;
NSMutableString *gid;
theRecord = [tableDataSource objectAtIndex:row];
gid = [theRecord objectForKey:@"gid"];
if (([gid intValue] % 2) != 0)
...
I've got a bunch of NSTextFields on a window (tagged 1-8) and I'm wondering if it's possible to access each individual text field programatically by its tag number so I can then get/set its value?
I'm a newbie and while I know how to access these fields by name, doing it by tag number will make things an awful lot simpler for what I'm t...
Hi,
I am developing an application in cocoa which needs to select an item by clicking a check box inside a NSTableview.I need to select the cell without highlighting the row of table view
Is it possible to do this...
Thanks in advance
...
Hi i'm a objC noob. I have a problem filling an NSMutableArray with objects.
for(id p in tmpArray){
Person *person = [[Person alloc] init];
person.usrName = p;
[persons addObject:person]; // after this line the persons
// array is still empty
[person release];
}
Persons is a property NSM...
My application uses SDL library.
For enter to fullscreen mode I use SDL_SetVideoMode and appropriate flag - SDL_FULLSCREEN.
Problem:
When application is in fullscreen mode, I can't call "force quit" dialog and switching between other applications.
After Cmd+Option+ESQ clicking my application is quit instead of "force quit" dialog is app...
Hi. I'm using an NSMatrix as a keypad and calling:
[selectedCell setEnabled:NO];
[selectedCell setTransparent:YES];
when a key is selected (to prevent the same operation being performed again). However, I'd also like the option of 'flipping' the entire selections when done -- that is, replacing all the deleted cells and hiding the rem...
(This is not a question about KVC/KVO and key-value bindings.)
I'm writing an application with a "tools" panel. Every tool can be selected using one-letter key (like "M" - "Move tool"). Tool can be selected even when there is no main window and the tools panel is not selected (not being "key").
Docs say that raw key events are not prop...
I've added a NSPathCell to a table view:
- (void)awakeFromNib {
NSPathCell *pathCell = [[[NSPathCell alloc] init] autorelease];
[pathCell setPathStyle:NSPathStylePopUp];
[pathCell setControlSize:NSSmallControlSize];
[pathCell setAllowedTypes:[NSArray arrayWithObject:@"public.folder"]];
[[tableView tableColumnWithIdentifier:@"destin...
Hi!
I want to build a document-based app in Cocoa but so that it can create and handle different types of documents. Think Word, Excel, Powerpoint all in one application, only much simpler. But every window will be different based on the type of document.
For storage I will use CoreData. I think of adding a field that specifies the typ...
From the docs I was reading that @dynamic creates the accessor methods at runtime, while @synthesize will create the accessors at build time.
So let me guess: @dynamic saves some memory and code is kept smaller in memory pages? or what? and what other differences are there between these?
Would it be ok to say: "It's always a good idea ...
Specifically, I want to create a new NSWindow in IB in MainMenu.xib, but I don't want that to be open when the application launches. I tried doing close: and orderOut: in both the init and awakeFromNib methods of my NSWindowController class, but it flickers for a second before closing.
...
Greetings,
I have an NSTableView with two columns that works fine... except: If I set the sort descriptor for the table in Interface Builder, things work as expected and sortDescriptorsDidChange gets called as expected. If, however, I don't set the sort descriptors in Interface Builder and instead use this:
[tableView setSortDescripto...
Hi,
I'm getting my xml file as a result of a php query from some server. When I print the resulting data to the console I'm getting well-structured xml file. When I try to parse it using NSXMLParser it returns NSXMLParserErrorDomain with code 4 - empty document.
I saw that xmls that it couldn't parse have BOM (Byte order mark) sequence ...
I'm opening a new question to followup on my last one (http://stackoverflow.com/questions/2064513/superview-and-parentviewcontroller-nil-after-adding-a-subview). Basically I get that using subviews is a good idea, but that I shouldn't have a ViewController controlling a subview that lives inside another ViewController. Basically I'd like...
I'm working on a menubar note-taking app with Simplenote syncing support, and it's been using a separate title and content for each note. It shows the title in an NSTableView and the content in an NSTextView, but now I would like for it to show the content as the title in the table view like in Simplenote. My problem is that I would like...
Hi,
I create NSViewController. It manage my view hierarchy and set other views in one NSBox.
- (void)displayViewController:(ManagingViewController *)vc
{
NSWindow *w = [box window];
NSView *v = [vc view];
[box setContentView:v];
}
I have two alternate views. The views have Quartz Composer root layer and CALayer sublayer.
// ...