cocoa

Implementing/Using outlineView:isGroupItem.

How would I use outlineView:isGroupItem: to give the root object in an NSOutlineView a Gradient background? ...

How do I use NSTimer

Hey all, How do I use an NSTimer. Can anyone give me step by step instructions? Thanks, Kevin ...

Xcode 3.2 documentation, missing symbol definitions like CGPoint?

I went into Xcode -> Preferences -> Documentation and grabbed everything there that makes sense. Yet when I option+click common symbols like CGRect or CGPoint I get: Documentation not found for the symbol 'CGPoint'. Click here to view symbol declaration. This wasn't an issue with versions previous to Xcode 3.2. What am I missing? ...

Concurrent network client in Cocoa

I'm trying to work out in my head the best way to structure a Cocoa app that's essentially a concurrent download manager. There's a server the app talks to, the user makes a big list of things to pull down, and the app processes that list. (It's not using HTTP or FTP, so I can't use the URL-loading system; I'll be talking across socket c...

Cocoa Helper app

Hi all I'd like to build a cocoa app and would like to have it opened on request. For better understanding you should look at evernote. It has helper app that sits in status bar and has it's own status item. Evernote's application bundle shows EvernoteHelper executable. How would i go about creating such executable in XCode project? S...

unrecognized selector sent to instance with a drawer

Hi, i'm trying to program a drawer function into Smultron (an open source code editor) but i'm having a bit of trouble with it. I keep on getting an error that says: 2009-09-20 12:43:06.067 Smultron[4481:a0f] -[SMLProject directoryDrawer]: unrecognized selector sent to instance 0x2003ea6c0 Now in SMLProject on interface builder I conn...

EXC_BAD_ACCESS when using NSOutlineView

Hi, i'm trying to get a Outline view to display a directory, now I've edited the example from Apple to make it work from any directory I set, except when expanding any node I get "EXEC_BAD_ACCESS" from the NSOutlineView class. Here is the header file: #import <Cocoa/Cocoa.h> @interface SMLDirectoryDataSource : NSObject { NSString ...

Duplicate records in Core Data on fetch

Folks, I've got a bit of a puzzler involving Core Data in my iPhone project. During the viewDidLoad method in two separate view controller instances I call the following method: - (NSFetchedResultsController *)getStudentResults:(NSString *)classRoom forWeekStarting:(NSDate *)startDate andEnding:(NSDate *)endDate { AttendanceAppDel...

Automatically expand UITableView - NSRangeException

I have a SQLite database tied to my uitableview. There are about 2000 rows, so I retrieve 25 rows at first. Once I scroll to the end of the list, I want it to automatically retrieve 25 more rows. Here's the method I'm using now. Ignore what would happen if I load all 2000 rows, I'll worry about that later. In tableView:numberOfRowsInSe...

How to get OS X to set initial location of NSWindow

How do I get OS X to place NSWindows in a reasonable default tiled-like location? Like when I open TextEdit and create 10 documents, I see all the windows as having the same size, but somebody is smart enough to place them offset from each other a bit. I'm sure that the app isn't doing this itself in code. (I need a code-based, not NI...

How are objects defined in an XIB file and how are they created at runtime?

I've just purchased a Mac and am beginning to explore software development using Cocoa and Objective-C using XCode in Snow Leaped having come from a strong Microsoft and C# backgrund All of the documentation and tutorials I have read use Interface Builder and XCode to create applications with user interfaces. My current understanding is...

How to register new schema in cocoa/objective-c?

Hi guys, I am looking for a simple tutorial (framework?) that will explain me basic steps that I have to do to register new schema and handle it with my app written in objective-c and cocoa. Explanation: Some apps like Adium, has registered schemas. Schema for the user is an URI like "adiumxtra://www.adiumxtras.com/download/6636". So, ...

Can I setup the tires array below as an NSArray?

I have looked on the web but can't find anything that might help. My question is can I write the tires[x] array as an NSArray, if so what would be the syntax to both declare and allocate the tire Class instance objects? @interface CarClass : NSObject { EngineClass *engine; TireClass *tires[4]; } . @implementation CarClass -...

Making the Text in a Text Cell change color when the Rows Checkbox has been checked.

I have a NSOutlineView and I want to make the text for a row change color when the rows check box has been checked. The Outline View looks like: _ _________________ |_| |____TEXT CELL____| _ _________________ |_| |____TEXT CELL____| _ _________________ |_| |____TEXT CELL____| (CHECKBOX) How would I do this. ...

Using Calender Store.

Is there a good example app or tutorial on using the Calender Store, possibly with an NSTableView being used to add Events/Tasks? ...

NSTextView with tokens

How can I add tokens, like NSTokenField, to a NSTextView? ...

NSTableView, multiple cells and bindings

I'm trying to create a view that's similar to Motion's properties views (screenshot). Each of my property objects contains a definition of the kind of cell it wants to display as. But at the same time, I'd like to use bindings so that values are automatically updated as they can be changed elsewhere. I've tried a few different approach...

How to keep Cocoa bindings working after replacing the target object's instance with another instance of the same type?

I would like to be able to use bindings to keep my GUI synchronized to a dynamically loaded object, but as soon as I replace the object in question with another one of the same type the bindings break and the GUI stops updating. Here's some code to help you understand what I mean: In my interface I have an instance variable to hold the ...

Getting PIX_FMT_YUYV422 out of libswscale

Hi I'm trying to learn to use the different ffmpeg libs with Cocoa, and I'm trying to get frames to display with help of Core Video. It seems I have gotten the CV callbacks to work, and it gets frames which I try to put in a CVImageBufferRef that I later draw with Core Image. The problem is I'm trying to get PIX_FMT_YUYV422 to work wit...

Creating a Cocoa radio button programatically

I need to make a Cocoa radio button programatically, can anyone explain how this might be done or post a good link that shows how to do this well. ...