Hi guys, I have a variable declared like this in a class:
Entity *array[BOARD_SIZE][BOARD_SIZE];
I need to set up either a @property that allows me to access (read) the array elements, or a function that returns a reference so I can access the array elements.
- ( ??? ) getEntityArray
{
return ???;
}
or
@property (????) Entity ...
Hi
How can I create the preview image for MS Office files like word, excel , power point in cocoa. Can anyone suggest me on this like how to handle those file?. I tried using the Bitmap representation of the .doc files.It dint work.. Which API i can use?..
thank you..
...
Hi,
I am trying to make an application on mac.i am trying to develop a user authentication module that uses the OS authorization dialog and use its functionality in my application. i have two questions regarding the mac development;
1) Is there a possibility to port the carbon applications to cocoa? (i don't have any concern
with ...
hi all
I'm trying to create an NSService in a Bundle project. I need to add a main and other bits of code to the actual cocoa bundle created for me by xcode.
Is this as simple as just adding an object-c class via the xcode wizard, then adding my main function to that? or is there some other magic way or other steps involved?.
Many tha...
Hello,
I'm creating an autorelease pool in a for loop (in method A). At each iteration of the loop, I'm calling another method (method B). Method B returns an autoreleased object to Method A. If I drain the pool within the for loop in Method A, will that release the objects sent from Method B?
Thanks!
...
Hi,
I am a newbie in Quartz and I am fighting to understand this stuff apple say is very easy and straightforward.
I have created two CGLayers: one for a fixed background and another one for a sprite. I want this sprite to move.
Both the background context and the sprite context are drawn offscreen and I would like both to be seen on ...
I have a core data table with BLOBs in it. I'd like to do a query that does the equivalent of:
select sum(length(image)) from tablename;
That would return the total size of all the images in the table. Is this possible in core data?
...
How can I capture the selection of a NSMenu header with an IBAction method created in connection with interface builder? I am not sure "header" is the right word so see the image below:
Is it possible to create an action for this the way you can with the selection of regular NSMenuItems? I can create the relationship in interface bu...
Hi Guys
I created a nib file and want to display dynamic text messages on it like file names that are selected or the no of files selected etc. Is there a way to to this?
I know this can be done for alert panels but i want it on my custom sheets.
Thanks
...
Hi guys!
I want to develop Safari plugin using xCode, What API should I use? Someone can give me some documents or sample codes ,Thanks very much!
...
Got a conceptual question: If I got a tableview with about 100 items and the user can check as many as he wants from that list, how and where do I save the checked status of each individual item for later reuse?
...
I'm trying to split my application into different sub processes, each one doing a very specific thing. Main reason is stability and better memory utilization because i use a conservative garbage collector (boehm-weisser).
I don't want to do it one huge process that does it all.
Unfortunately the subprocesses must display some windows ...
Can you guys tell why this code shows no image?
CALayer *layerBack = [CALayer layer];
addedObject = [[UIImage alloc]initWithContentsOfFile:[[NSBundle mainBundle]
pathForResource:[NSString stringWithFormat: @"%@%d", PREFIX, number] ofType:@"png"]];
layerBack.bounds=CGRectMake(0.0f,0.0f,selectedImage.size.height,selectedImage.size....
Hi,
I'm using Cocoa and the QTMovieView to show a movie. I'd like to be able to show a custom movie controller below the movie, so the user can set markers and an in and out point. Basically the same behavior as Final Cut Pro.
I'm fairly new to Interface Builder, but from the looks of it this is not easy. Can someone tell me how to do...
Hi,
I've a problem with KVO and I just can't find out what it is.
I have a screen that can be used to edit or create a record. That record is represented by a model object that holds a number of variables of type NSString.
The controller for that string has an instance variable to hold the model currently being worked on. When I open ...
I have an NSMatrix with two columns, When the frame resizes I don't want the left column to resize with it. Is there a way to do this without subclassing NSMatrix?
I am thinking maybe I should just make two NSMatrix's and position them side-by-side, one with autoresizing set to YES and one set to NO. Is this the most appropriate way ...
Hi, I'm writing a Cocoa app in Objective C that's communicating with a webservice and I want it to connect to a sandbox in debug mode and to the real webservice in release mode. All I need is to change on line of code where an object that holds the configuration gets instantiated (with a different init-message and different parameters).
...
I've been working on and off with a team that's developing an iPhone app. Like a lot of other developers new to Cocoa Touch, we decided to create a hybrid Cocoa-Web app which was essentially a few buttons controlling some UIWebViews -- partly to (a) leverage existing web development expertise, partly because of (b) the advantage in pushi...
Update:
iPhone OS 3.1 has associated objects. However, the iPhone simulator does not. If you want to test associated objects code in the simulator, you should file a bug.
See my SO question here.
rdar://7477326
Snow Leopard now has associated objects.
Is there a way to accomplish something similar without associated objects? (Spe...
I'm trying to upgrade an app (Clarke) to provide 10.6 compatibility.
My plan is to use two different code paths depending on the version of OSX in use.
On 10.5 it will use one controller, which consists of completely custom code that isn't dependent on any specific Cocoa API. On 10.6 it will use another controller, which wraps the new...