Im trying to find a good way to sort people by their Role within a specific company. What makes it tricky, is that a person can have one or more roles in different companies.
At the moment I have an array of 'Person' objects, and each of these objects has a NSSet of 'Roles' objects associated to it.
Similar to this:
Person
-personId
...
Hi,
This is probably asked before but I have no idea what to search for. This is my hierarchy now: NSObject > FirstSubclass > SecondSubclass. But I'm going to implement a new feature in my app which requires changing a few details in FirstSubclass when a certain condition is met. So actually I would need a subclass between FirstSubclass...
Hey guys, in the TTStyledTextLabel, the url's font is a bit bigger(from what i noticed) and is blue-ish.
I am just wondering how to change the url's font to a smaller size?
...
I am adding a custom UIButton to the accessoryView of UITableViewCell. I pay strict attention to the retain count and have found that the retain count is incremented to 2 when I add the button but if I put in a release or an autorelease, the code crashes on an invalid reference after loading all the tableViewCells.
First the code and t...
Is there an equivalent of Marker manager in Google Maps in MapKit Framework which help cluster the markers in certain zoom levels?
What Marker Manager does is as follows:
"Adding a large number of markers to a Google map may both slow down rendering of the map and introduce too much visual clutter, especially at certain zoom levels. The...
This is my code:
ABAddressBookRef _addressBookRef = ABAddressBookCreate ();
NSArray* allPeople = (NSArray *)ABAddressBookCopyArrayOfAllPeople(_addressBookRef);
NSMutableArray* _allItems = [[NSMutableArray alloc] initWithCapacity:[allPeople count]]; // capacity is only a rough guess, but better than nothing
for (id record i...
I have a very simple question. Is there a built in method to shorten strings? If not can someone provide an example of doing that in ObjC?
For example:
ThisIsAVeryLongString
should become
ThisIsAV...
It needs to check if the string is over a certain amount of characters and if it is shorten it.
...
hey.
When I am clicking URL link on TTStyleTextLabel, it doesn't push a new page.
But when I looked at the TTCatalog, they don't have any method in the styledtexttestcontroller which seem to open up the webpage.
So how does TTCatalog do that?
How can I do that?
...
I've got a very stupid problem. I have a TableView where I'd like to make each cell editable by pushing into a DetailController. It's working so far, but when I do
NSLog(@"selectedItem: %@", selectedItem_);
in viewDidLoad, the log displays:
selectedItem: (null)
selectedItem: Toe
RootViewController (didSelectRowAtIndexPath):
NSStri...
I have a little problem. Essentially, the code:
uint64_t myInteger = 98930 * 98930;
NSLog(@"%qu", myInteger);
...just gets it wrong. I get '1197210308' as the output, which is evidently incorrect. Why is this happening? It can't be that a uint64_t is too small, as they apparently go up to 18 and a half quintillion. Anyone have any ide...
i am trying to pull a map in my applcation with interface builder using MKMapView but for some reason its not showing up. Also i want to add some button to this view by clicking which i can browse a file existing in my iphone.
Please provide me with the detial description as i am new to this.
Thanks,
...
How do I make my view appear below the green bar during a phone call? right now my app is being partially covered by the green bar during a phone call.
...
What methods should be implemented?
I've tried to set the TableDataSource as a delegate to my TableView, but delegate methods wasn't called. After that I tried to set "TableDataSource" as delegate in code, and got this warning:
warning: class 'TableDataSource' does
not implement the 'NSTableViewDelegate' protocol
Delegate metho...
I have a Cocoa document-based app that (currently at least) functions as a basic text editor. It saves .txt, .rtf, and .rtfd, and loads those plus .doc and .docx. If I open a .doc or .docx file and edit it, then try to close, it reminds me to save, but the save option doesn't do anything since the application is only a viewer for those...
Im using the standard:
[NSURLConnection sendSynchronousRequest:theRequest
returningResponse:&response
error:&error];
method, but while the request is away, for both waiting for the response and downloading the data, the activity icon in the OS (very top) doesnt spin showing net...
I have the following method
-(IBAction)back:(id)sender {
}
and would like to be able to know the sender id.
e.g. if there are multiple buttons linked to this method, I would like to know which button was pressed.
...
I've got a bunch of resources -- images, to be specific -- which are all stuck in a resource group via XCode.
I know how to load a specific image file from within that resource group by specifying the filename and using inDirectory to specify the "path" to the group it's in.
But is it possible to obtain (programatically) a list of all ...
Hi.
I want to make a game, where the user can touch a picture of a TV and then choose a picture from their photo library.
I had success working with UITextFields, adding them to my EAGLView as subviews But I haven't been able to do the same thing with an UIImagePickerController , which seems the only way to do what I want to do.
Any h...
I am just getting started with iphone development
I have a Tabbed application and I wanted to display a log in form modally
so i looked here Apple Dev and did this inside one of my view controllers
I connected a button to the following action:
#import "LoginForm.h"
...
-(IBAction)showLogin{
LoginForm *lf = [[LoginForm alloc]initWithNi...
Where can I find a simple compilable example on how to create and use a UIWebView?
Any non-interface builder examples?
...