As an answer to a question I asked yesterday (http://stackoverflow.com/questions/3293832/new-core-data-entity-identical-to-existing-one-separate-entity-or-other-solution), someone recommended I index an attribute.
After much searching on Google for what an 'index' is in SQLite/Core Data, I'm afraid I'm not closer to knowing exactly what...
Here is something I just can't get to work....I can make the view controller talk to my custom objects just fine....but how do I send messages to the View Controller from my objects?
A message from myViewController to myObject would look like
[myObject doSomething].
What would the opposite message look like? Does it even make sense to...
Hi, everyone,
I want to ask about the objective C on iPhone. I am writing a application, it contains 2 pages. The first page requires the user enter some information. The second page displays the tab page (3 tab).
And I create the first page and the second page in different project. I use the 'Window-based Application' to create the f...
I have one of these crazy keyring Scanfob bluetooth scanners and I have been tasked with building a simple scan-to-tableView application. The problem I am facing is how to accept key entry without using a TextField or TextView, as they ultimately make the Keyboard appear which is unacceptable to the client.
This is my first week in Obj...
I have an NSNumber being passed to be via a 3rd party API, and when I call intValue on the index I get a EXC_BAD_ACCESS error:
-(CPFill *) barFillForBarPlot:(CPBarPlot *)barPlot recordIndex:(NSNumber *)index;
{
NSLog(@"bar index %i", index);
int value = [index intValue];
}
The output I get in the debugger is:
bar index 0
ba...
I have a view with a custom slider. We are using a subclass of TableViewController that is generating instances of UITableViewCell. Inside each tableViewCell we add our custom slider (a UI View) as a subview. In here we have a view that serves as the slider's control knob. It is just a subclass of UIView with a gesture recognizer. The dr...
A friend sent me 4 files (two .m files, one .pch file, and one .h file) that he says compile together into an Objective-C program. From what I understand, it's an Apple language, and I use Windows. I've been trying to compile it in a new project on Dev-C++, but haven't had any luck. After some research, I downloaded a special Objectiv...
Hello,
i am trying to delete cell on tableview with sliding finger (like on the recent call)
i know i need to implement
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
{
NSArray *index = [[NSArray alloc]initWithObjects:indexPath];
[...
Im having a little problem on handling touches in my apps.
I set my touchesBegan like this:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *currentTouch = [[event allTouches] anyObject];
touchPoint = [currentTouch locationInView:self.view];
if (CGRectContainsPoint(image1.frame, touchPoint)) {
...
I have an iPad app with a UIWebView which loads some local .rtfd.zip files. The problem is that if I compile the app with XCode 3.2.2, everything works fine, but if I compile it with newer versions of XCode, I just get a blank UIWebView. Here's how I load the files into the UIWebVIew:
-(void)loadFile:(NSString*)file
{
NSString* resource...
HI ALL,
I have created two custom buttons using IB and i have set their background image.Now i want that when a user selects a button its background image should change and the new background image should persists until user presses the other button.how to do this?
...
Hi!
I want to develop an application for the iPhone that generates custom DTMF tones. I assume the pure tone will be played from a memory buffer and not from an uploaded file, and I think I should use AVAudioPlayer class and the method "initWithData:error:", but how do I implement it? Whatever I do, I can't make it work!
I saw this cod...
Hi @ all,
in my iPad App i'am resizing a UIView to 60% of its original size
magController.view.transform = CGAffineTransformMakeScale(SCALE_FACTOR,SCALE_FACTOR);
that works fine so far but if I rotate the device the UIView gets more or less clipped. I have this issue only on the device in the simulator everything works perfect.
gree...
I'm trying to implement an actor model of concurrency in Objective-C, because I want to avoid the infamous problems of shared mutable state, locks, semaphores, etc. It can be done, but it takes real discipline to avoid accidentally using shared state.
One way to enforce the shared-nothing rule is to use separate processes instead of se...
Hi Folks,
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
NSLog(@" touches ");
}
The above method is not calling in my apps. My application description is as under.
I have a MainViewController which loads a ContentViewController in it. ContentViewController has a webview which loads a pdf file.
How to listen t...
Hi there,
I've created a static getter-function:
@implementation MyClass
static int aValue = 1;
+ (int) aValue { return aValue; }
// other stuff here
@end
and now I'm trying to access it in some different ways from another class:
@implementation AnotherClass
- (void) aMethod {
if (MyClass.aValue > 0) { NSLog(@"Foobar"); } //...
Hello,
I'm creating an app for the Iphone and i'm using Cocos2d.
As part of the help menu, i want to redirect the user to a site when they click a link. Is it possible to do in cocos2d?
Thank you!
...
Hi there,
I've got an appli where images are touched and replaced once touched.
not quiet complex but the response time of the touch and the replacement is really high and I'd like to find a way to detect where/why the appli is slowing down...
what could I do to identify the code portion that is slowing the app ??
...
hi all,
I am trying to insert values in database but while preparing statement it is giving me error "SQL error or missing database"...can anyone know what this error is and how one can resolve this?????my path for database is
2010-07-22 14:34:59.933 DatabaseApp[1521:207] path of database /Users/nuzhat/Library/Application Support...
Alright, this is an elementary question but I'm asking because I honestly don't understand how to properly manage this. If I uncomment the last two lines, this code crashes, even though I don't think it should.
The following code is from a custom subclassed UILabel where I added the following method, setTextFromFloat.
-(void)setTextFr...