Suppose I have a view derived class named MyView. In the same Xcode project MyView is defined, I have many NIBs. Some of the NIBs have a Custom View with the class set to MyView.
Now suppose I want to change the name MyView to something else or rename an outlet. I need to find all NIBs using MyView so I can update them.
My question is:...
I'd like to know if it is possible to hide library implementation from consumers of a static library.
This great thread spawned a few questions in regards to a licensing system for static libraries: http://stackoverflow.com/questions/1739373/licensing-system-for-static-library. The scheme I'd like to use is:
Give consumer a license ...
I've been working this for a few days now with no luck.. I am trying to parse a collection of key/value pairs from an NSDicitonary but it seems to be very sensitive to a hyphen in the key name. Below is an example of the data.. If I try to access any of the fields with a hyphen using the code below I get the following error:
unreco...
So my app was rejected (it has been approved every other time i have put it in for review and I hadn't touched this code path in ages) or this line:
[myAlert addTextFieldWithValue:nil label:NSLocalizedString(@"Name",@"Name")];
Apparently addTextFieldWithValue:label:
is a private API...
so how are we supposed to put a UITextField insid...
In questions like this one it shows how to use UIKit's
-(UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight
to stretch a PNG easily, e.g when inserting text in an iChat like bubble. I would like to do the same on regular AppKit/Cocoa/desktop app using CoreGraphics or some NSImage ...
Hey guys,
So I'm trying to make a UITableView that has a repeating background. I want the background to scroll with the text. The catch is that the background is 2 images. There is a top image that is about 550px in height, and then a repeater image that's 2px in height. I want the top image to scroll with the table view and then eventu...
I have a query about the use of viewDidUnload and dealloc in a simple implementation of UITableViewController.
Essentially I'd like to know more about weather or not both viewDidUnload and dealloc are always called in succession in the tear down process. Is it possible that dealloc could be called on the controller without viewDidUnloa...
I have an NSArray, and I want to split it into two equal pieces (if odd "count" then add to the latter new array) - I want to split it "down the middle" so to speak.
The following code does exactly what I want, but is there a better way?:
// NOTE: `NSArray testableArray` is an NSArray of objects from a class defined elsewhere;
NSMuta...
Hi, I'm developing an iPhone app, I'm trying to push a view into the navigation controller, which I've done many times before, however, I'm having some issues with this particular app. I have a table view, and when the user selects one row the new view is pushed into the controller:
DataWrapper *row=[[self.rows objectAtIndex:[indexPath ...
I have a navigation controller-based application that could be active for a relatively long time and can load multiple screens, revisiting some in the course of its life - a business application. When I push a screen I allocate some memory; when I go back (pop it) I need to ensure memory is not lost.
Now in Leaks I have a clean slate. N...
Hi all,
I am developing an application in cocoa .My application shows a pop up sheet initially .Now i need to know which event is fired when we try to exit the application by right clicking and selecting "exit" on the icon in dock,because i cant exit the appication because of the popup sheet ..looking for a solution
...
Hi,
Would you be able to help to delete the warning discussed below ?
I have one file example.h
In that I declared static const NSString *variable = @"cool";
Now, I have another file multiple.m. In this file I have a function Bool var2 = [object methodname:variable];
It means, I passed variable as parameter for this function, but ...
I want to create a program that displays the clock in hexadecimal (geektime.org format) in place of the current time. I know that it is possible to set a custom string in that location in the com.apple.springboard.plist file under the SBFakeTimeString key, but it only updates when the status bar is refreshed (ie goto/from springboard). ...
Hi,
I want to save the state of my view controller. I searched and found that I should save the state by saving state variables.
But I am interested in saving the view controller object itself. Is there any way to save the view controller object itself so that when I restart the application I see the same view state too on which I was ...
Objective-C: how do I convert NSMutableArray to NSArray?
...
Hi,
I try to display a simple webpage inside my UIWebView without a Nib. The problem is when I click on my buttun a new page blanck page appear but nothing is display.
Did I miss something?
- (void)loadView {
UIView *topView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
UIWebView *web = [[UIWebView alloc] in...
I'm developing a puzzle game application - watch on youtube - for iPhone, and the actual "in-game" part is almost done. It is a separate Class (subclass of UIView) what initializes with a puzzle clue, puzzle pieces, and is ready to send a message for somebody if the puzzle has solved ("completeness" check invoked on every touchesEnded).
...
I have a wcf web service which returns a wsdl response when I invoke the service.How can I consume a WSDL web service in iphone?
...
Hey stackfolk,
I'm working in the IPhone SDK, and am pretty new to objective-c. Right now I'm working with NSUserDefaults to save and restore setting on my IPhone app. In order to save the classes that have been created, I encode them into dictionary form, and then save the NSdictionary.
My problem is that I can't find a reasonable w...
I'm trying to register an icon for my app's document type. After reading Declaring New Uniform Type Identifiers and looking at /Developer/Examples/Sketch I came up with something like this in my Info.plist:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSItemConten...