objective-c

How to embed app with log4cocoa?

Hi, Guys. I'm having some trouble to embed my application with the log4cocoa framework.I've embed frameworks in my application before with no trouble, but I cannot fix this one. First of all, this is my system out: dyld: Library not loaded: @loader_path/Frameworks/Log4Cocoa.framework/Versions/A/Log4Cocoa Referenced from: /Users/lean...

How to trigger methods with UIButtonBarItem?

I have a a xib with a toolbar and on that I have 2 buttons all made in IB. I can connect my outlets to the buttons but when I click them the method isn't triggered? Why is that? In my header file I have this: @property (nonatomic, retain) IBOutlet UIBarButtonItem *cancelEntry; @property (nonatomic, retain) IBOutlet UIBarButtonItem *sav...

How to model a HPC queueing system with Objective-C

I am trying to program an application for the mac to query a high performance computing cluster about its running and queued calculation jobs. The aim is to be able to monitor the submitted jobs if they are still queued and waiting for execution or if they are running and on which node or host in the cluster. On the GUI side I would lik...

Video conference in iPhone app

Hi, I want to implement a kind of video conference on the iPhone. I know that the Faceti e API comes available sometime I can't wait for that.. Does somebody know where to start? Or some sample code would be very welcome! Thanks in advance! ...

Bind to NSTreeController selectionIndexPaths

Hello, I want to bind to a NSTreeController's selectionIndexPaths programatically by doing the following (so that I can get a string a selection and display in a text view) [activePDFView bind:@"name" toObject:treeController withKeyPath:@"selectionIndexPaths.nodeName" options:options]; The tree controller is bound to a NSMut...

iPhone OS 4.0.x - transition from background to foreground

iPhone programming question: Is it possible to wakeup/resume iPhone application from background mode to foreground mode programmatically? I have a long-running background task, which is being launched in applicationDidEnterBackground method of UIApplicationDelegate. I need to make my application active/visible using some code inside ...

How to wrap an asynchronous class to make it synchronous? Use NSRunLoop?

I'm currently working on an iPhone app and I have a library from a third-party that has asynchronous behavior but that I'd like to wrap with my own class and make it appear synchronous. The central class in this library, let's call it the Connection class, has several functions that have their ultimate result resolved when methods on ...

Continously Updating UIViews in Objective C

I am very new to Iphone programming with Objective-C but I have picked up pretty fast in the last 1 month. I have an application that reads data from a .csv which I then use to plot a continous graph on the Iphone. The problem is that there are close to 84,000 data points ( a major requirement) and the current design I used with Quartz ...

ObjectiveResource: Nested resource is returning null

Hi all, I'm having a problem with a nested resource returning null (specifically <responsible_user>). On the server side, I have a tasks.xml file with this schema: <tasks> <task> <id>1</id> <text>Something to do...</text> <completed>false</completed> <project> <id>1</id> // project inf...

How can I remove the "blur" effect that Cocoa adds to transparent sheets?

By default, Cocoa adds a background blur effect to transparent and semitransparent modal sheets when they are applied to a window. I would like to disable the blur effect. How would I go about doing it? I have created a custom sheet (a subclass of NSWindow with a transparent background and some controls in it). I am able to display it u...

iPhone SQLite Database Reading And Writing

So I am trying to work with SQLite in one of iPhone applications and I am using the sqlite3 library. I am able to access the database and even make a query; in fact the query accesses the exact data but for some reason the string I am getting back is a long integer and not the string I was looking for. Here is the database and code: Fi...

Achieving Mutability When Mixing Primitives and Cocoa Collections

Okay, I think I might be over-complicating this issue but I truly am stuck. Basically, I am trying to model a weight set, specifically an olympic weight set. So I have the bar which is 45 lbs, then I have 2 weights of 2.5 lbs, 4 of 5 lbs, and then 2 of 10, 25, 35, and 45 respectively. This makes a total of 300 lbs. bar = 45 lbs 2 of 2.5...

use custom core data persistent store for getting data via webservices?

Is this a good idea? When is it a good idea, and when is it bad? Just heard about this in one of the WWDC videos, and I don't quite understand why would one want to do it this way. Seems complicated and I cannot see the benefit. ...

Why do variables initialized in viewDidLoad not retain value in Objective-C?

I have a class I wrote called Location that just holds some strings. I'm using two instances of that class in a view controller, and when I initialize the two variables in viewDidLoad, they work fine for that method, but then when I try to use them later they are null. I have them set as retained properties. I have tested them and kno...

Image Paging Like the iTunes App Store, in a UITableViewCell

The specific thing I am looking at doing can be found on the App Store Application when you view an App. The screenshots of an app can be swiped from left to right to view. From what I can tell they have a UITableView with different cells holding the content. And for that one UITableViewCell where the images are Swiped left and right the...

Porting Quartz 2d python demo to pure Core Graphics C

Hi folks, let me first off noting that I have absolutely no idea what I'm doing with objective-c and mac development (though I'm fine with c). I made a wonderfully simple graphics utility on leopard with the Quartz-2d binding for python: http://developer.apple.com/graphicsimaging/pythonandquartz.html that basically inputs a text file ...

How can I implement the service locator pattern in Cocoa Touch across multiple projects?

This is a problem which has been bugging me for a while now. I'm still pretty new with some of these patterns so you'll have to forgive me (and correct me) if I use any of the terms incorrectly. My Methodology I've created a game engine. All of the objects in my game engine use inversion of control to get dependencies. These depend...

UIViewController not responding to presentModalViewController for modal navigation

I am trying to implement a modal navigation controller as described in the Apple iOs Guide http://tinyurl.com/2fswaul I have come to the conclusion that I am missing something both obvious and stupid as I simply cannot get anything to display, I get a blank white screen. Swapping things out I can prove that the view controller that I a...

How can I convert longbits to double in objective-C?

In java I can use Double.longBitsToDouble() static function but in objective-C I can't find a way to do like that. How can I get that? Thanks :) ...

Perform ATARead/Write to SSD in MAC OSX

Hi, Please let me know how to perform ATARead/write to target device(SSD)in MAc OSX.Is there any API provided.Using NSFileoperation we can do this task but i wanna know How we can acheive this using ATAPassthrough in MAC OSX.I tried RAW disk operation in that case we can only read contents . Please help me to find out a solution Gouri...