I'm trying to bind a bare esc key press to an NSMenuItem that toggles full screen (currently just a stub function). Manually selecting the menu item sends the desired IBAction. When I set the NSMenuItem's Key Equiv. in Interface Builder to an arbitrary bare key (eg. w) that key command sends the desired IBAction. When I set the Key Equiv...
Hi,
I am not fluent in objective-c and thus have decided to take the "easier" approach and use html/css/javascript instead to design and implement an iPhone application. I would be using PhoneGap to gain as many of the cool features which are available to developers using Objective-C as possible. Would I would like to know is if there a...
I have created a ticker for my project which is working fine.
I want to add up a down arrow image within this ticker as per the stock market.
What should i have to do?
Can anyone help me?
...
In languages like C++ or Objective-C a class normally consist of two files. The first is called Header or Interface but what is the "official" name of the other file?
In some books it's just called "Codefile" in other "implementation file" or "message file" for Objective-C. Which name is the right name?
I need to write a tutorials and I...
Hi Guys,
I have one NSMutableArray with 100 objects. This is original array.
I have another array that contains 20 objects which are also in the original array.
I want to display the original array in the view controller minus the objects in the other array.
How can I remove the existing objects from original array?
we can add objec...
I have four main methods:
+ (NSArray *)findAll;
+ (NSArray *)findAllWithOrder:(NSArray *)order;
+ (NSArray *)findAllWithConditions:(NSDictionary *)conditions;
+ (NSArray *)findAllWithLimit:(NSRange)limit;
In addition, I want to combine these methods (so I can find all by both order and conditions, for example). Currently I'm doing (al...
I am sure it's something easy, and I am not looking to the right documentation.
I need to get information about the application that handles the active window. The code I need to write needs to intercept some custom gestures, and return to the application an event that depends from the application itself.
...
Hey everyone,
I'm making a checklist program using UITableView and I managed to implement everything up to selection and making a checkmark appear. However, when I scroll away from the cells. The checkmark disappears.
I have the following code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath...
I want to create a factory that:
- would create instance of object for some id (string),
- would allow for class to register itself for an id.
Currently this is implemented with centralized register of mapping.
I would like to decentralize the register, so every class would register itself in its implementation file.
My idea for this ...
I have function for adding UILabel to my view:
UILabel* AddLabel(UIView* view,CGRect labelRect, UIStyle* labelStyle, NSString* labelText)
{
UILabel* label = [[[UILabel alloc] initWithFrame:labelRect] autorelease];
label.textColor = [UIColor colorWithCGColor:[ labelStyle.textColor CGColor]];
label.backgroundColor = [UIColor c...
Hi,
I got this iAd crash randomly in my app. What could I do to fix? I don't see any hints for me to fix it because on the simulator it never happens.
Incident Identifier: CA4CBEB9-A081-459B-BAAA-C7D58A0E0ABC
CrashReporter Key: e24b9614a897f92ee13ce00b76c71db307c61dcb
Hardware Model: iPod2,1
Process: FooApp [737]
Path: ...
I'm using the first answer from
http://stackoverflow.com/questions/3130363/ios-4-mpmovieplayercontroller
to try and get MPMoviePlayerController to play. In the simulator (iPhone device with iOS4), I hear sound but no video. On the device (iPhone 3GS and iOS4), I don't get anything. Here's my code:
MPMoviePlayerController *moviePlaye...
Hello,
I am trying to load a bundle using bundleWithPath but it always fails (returns nil)
I was wondering what can be teh reasons why it fails and what are the way to het more information about the error.
Thanks in advance for your help!
Regards,
...
I'm using StakKit framework on my MacOX application, When I added newer version of the framework to the project. I have noticed that XCode is still referring to the older framework and I get warning like
SKUser may not respond to '-gravatarIconURL'
How do I fix this issue? any suggestions?
...
I am trying to get the current longitude and latitude right before the table loads and use the coordinates to make an HTTP request to get a list of nearby locations to display in a table. Right now, I am calling startUpdatingLocation in viewWillLoad, which is too late. My problem is that I can't seem to get the locations before the table...
Anyone know why Jeff Lamarche's Alert View with prompt class produces a alert that is mostly off screen when used in iOS4? All the code in a downloadable project can be found here:
http://iphonedevelopment.blogspot.com/2009/02/alert-view-with-prompt.html
His sample project out of the box, in the 3.2 simulator (running as an iphone app...
Hi guys,
I desperately need help with a memory leak in my iPhone app. The app is ready to submit to the app store, is stable, has no memory leaks at all in iPhone simulator or Clang ... but seems riddled with them on my iPod Touch.
They all seem to stem from managedObjectModel when I'm trying to retrieve data from Core Data.
The Core...
Hi,
I have a searchable tableview, but would like to only display the number of cells that are returned once a user starts a search. For instance, if a user types in a charecter and there is only one cell that matches the search, the remaining cells the remaining cells of the table are empty. I was wondering if there is a way to hide th...
Hi,
I recently downloaded the sample application, GLPaint from apple. This app showed me how to implement drawing, but now I would like to animate a image over the drawn lines. Similarly to how the application "Flight Control" works, I would like to be able to draw a path for an image and then have the image animate over this path.
any...
hello
I am used Facebook for my application where i have to post comment on wallpaper.But now i have to modify that application. i want page after user login it will give option like
1: post to wall
2: reterieving friends
3: logout
Can we implement this page after login instead of direct opening the page of post wall.
If yes then pr...