Hi,
I have a simple class with an NSMutableDictionary member variable. However, when I call setObject:forKey I get an error ('mutating method sent to immutable object'). The source of the problem is obvious from the debugger -- my NSMutableDictionary is actually of type NSDictionary.
I must be missing something incredibly simple but c...
Currently I am working on a production app. One function acts like the settings.app on iPhone. When the user click a cell of a tableView, as shown below
http://www.penguintech.net/images/stackoverflow/1.png
It will push another view, which includes a textfield to let user input something.
However, on both simulator and device, after t...
Here's the issue:
I have a list of App names that I want to launch. They do not include a path (e.g. {"VLC","Microsoft Word"}. I have two different copies of VLC in different directories. I would like Launch Services to ONLY open the one from /Applications/ and not EVER launch from /Applications/AnotherDirectory
I want to get the path ...
Hi, I am trying to develop a cocoa application that requires to read highlighted text from any application. But so far I cannot find any decent solution because the accessibility API isn't always work. (e.g. Firefox) Does anyone know how it is implemented in text-to-speech included in Leopard?
I have found this SO question but it isn't ...
Sometimes I encounter code that has *, sometimes **. Can anyone explain what they mean in Objective C? (I used to be a Java programmer, with experience in C/C++.)
...
self.myArray = [NSArray arrayWithObjects: [NSArray arrayWithObjects: [self generateMySecretObject], [self generateMySecretObject],nil], [NSArray arrayWithObjects: [self generateMySecretObject], [self generateMySecretObject],nil],nil];
for (int k=0; k<[self.myArray count]; k++) {
for(int s = 0; s<[[self.myArray objectAtIndex:k] coun...
I know that the Apple community – including Mac and iPhone developers – mainly use Objective-C for their development language. But it seems that not many people use Objective-C outside of the Apple community, such as in the Windows or Linux worlds.
What are the possible reasons that Objective-C is not particularly popular outside of the...
I want to insert a image in a cell which is the part of UITableView(grouped) with the coordination(image) in iphone ?
...
Hi,
I am new in iPhone development. I am developing an application that fetches a value from a database and displays it in a table view. I want to delete table rows one by one but the rows do not delete and the application crashes.
Here is my row deletion code:
- (void)tableView:(UITableView *)tv commitEditingStyle:(UITableViewCellEd...
#import <UIKit/UIKit.h>
@class SearchDetailViewController;
@interface SearchTableViewController : UITableViewController
<UISearchBarDelegate, UITableViewDelegate, UITableViewDataSource>{
IBOutlet UITableView *myTableView;
NSMutableArray *tableData;//will be storing data that will be displayed in table. //Search array den buna aktarm...
Hi guys,
I'm using MD5 function and Base64 Encoding to generate a User Secret (used to login to data layer of the used API)
I did the code in javascript and it's fine, but in Objective C I'm strugling with the BOM
my code is:
NSString *str = [[NSString alloc]
initWithFormat:@"%@%@%@%d",
[auth up...
Hi.
I have a table with several textFields in several cells, each with different input keyboards (numeric for phone number, standard for name, etc.).
When I change the editing text field by selecting one when other is editing, I want the first text field to hide the keyboard (the one which is being used) and only then the new keyboard ...
for ( tempI = 0; tempI < 10; tempI++ )
{
tempJ = 1;
NSArray *objectsForArray = [NSArray arrayWithObjects:@"array[tempI][tempJ]", @"array[tempI][tempJ+1]", @"array[tempI][tempJ+2]", nil];
}
Can I write the code as above. I need to store an float value (array[][]) in NSArray. Can I do it ?
My problem is, I have a matrix as
...
I am writing a program in Objective-C (Xcode 3.2, on Snow Leopard) that is capable of either selectively blocking certain sites for a duration or only allow certain sites (and thus block all others) for a duration. The reasoning behind this program is rather simple. I tend to get distracted when I have full internet access, but I do need...
I have a view, that have a drawRect method, I know that this method is the only way I control the View to draw something on it. So, I try to my drawing logic in this way:
- (void)drawRect:(CGRect)rect {
//my drawing code...
}
In my view, I use the IB to link this class.
[myView setNeedsDisplay];
It works, so, I designed to have...
I am looking though some source code from a third party and am repeatedly seeing a syntax that is new to me. Basically they are separating statements with commas instead of semicolons. It compiles and works, but I don't understand what it is doing. It looks like so
if(url)[url release], url = nil;
and they also use it without the if s...
I am need to parse a pdf file. I would like to use objective-c and Cocoa classes to do so, but I need the resulting application to run on Linux. Is this possible? My experience to Objective-C revolves around the iPhone so I'm relatively new to Cocoa. Thanks.
...
My application utilizes approx. 50+ .plists that are used as NSDictionaries.
Several of my view controllers need access to the properties of the dictionaries, so instead of writing duplicate code to retrieve the .plist, convert the values to a dictionary, etc, each time I need the info, I thought a model class to hold the data and sup...
I am using cocos2d to build an iPhone game. It's mostly done, but along the way I came across some things that I would like to handle better. I am fairly new to Objective C, and honestly I do more Perl scripting in my day-to-day job than anything, so my C skills are a little rusty.
One of them is the fact that I have modified cocos2d ...
I have a static library (let's call it S) that uses a category (NSData+Base64 from MGTwitterEngine) and a C library (MiniZip wrapped by ZipArchive, a mm file).
This static library is used in an iPhone 3.x project (let's call it A). To be able to use the MiniZip library I included its files in project A as well as the static library S. I...