I attempt to install CorePlot according to the readme file, but as soon as I add $HOME/Library/SDKs/CorePlotSDK/${PLATFORM_NAME}.sdk to Additional SDKs in the project settings I get a massive spew of compile errors trying to compile the PCHs.
I've followed the rest of the install procedure and I continue to see this problem with header ...
I know that the "-length" method returns an int. Is there any other method that works the same as the "-length" method but returns as an NSInteger or an NSString?
...
I don't think I am creating this array of UILabels correctly.
If I put a breakpoint after this line of code, it shows that the array is empty.
colorLabelArray = [[NSMutableArray alloc] initWithObjects: greenLabel, orangeLabel, blackLabel,purpleLabel, yellowLabel, redLabel, blueLabel, whiteLabel, nil];
If I do the same thing with UI...
I'm trying to make a server monitor in Objective-C, that behaves kind of like the dock on Mac OS X. I'm hoping to have it slide from the side of the screen when the mouse is moved to a side of the screen, kind of like a dock with auto hide on. I'm not sure where to start though.
I'm guessing I need to have a window with a NSBorderlessWi...
I was working on my program, and it seems something in the settings changed. Suddenly I have the error "Duplicate interface declaration for class 'Foo'". It mentions a header file being duplicated but there's only one copy.
Interestingly this is only happening in debug mode, not device mode.
Does anyone have any idea what might be wron...
Are there any specific guidelines of what to do if you get a memory warning? I know that you have to try and kill off objects that aren't required, but if this makes your application inoperable, what other options are there?
An example might be if say the application was Apple's contacts app and the user is editing a person's contact d...
<colors>
<color colorName="Abracadabra" colorNumber="D51-2" rColor="209" gColor="224" bColor="229" colorCollection="Harmony" colorFamily="Shaded" rating="3" surfaces="" colorGroup="Blues" />
<color colorName="Abyss" colorNumber="B50-1" rColor="233" gColor="247" bColor="249" colorCollection="" colorFamily="Clean" rating="3" surfac...
I'm new to Objective C.
I've installed jEdit on windows 7 and the gcc compiler too.
I need to know how to use jEdit to develop Objective C applications on windows
Thank you.
...
I have a large calendar view, that contains a lot of child views, that represent some calendar entries. The child views should respond to tap, tap-n-hold, double-tap. But, I want a large calendar view also respond to such gestures as pinch-to-zoom and swipe, even if a finger crosses somehow child views.
By now, there is an overlaying tr...
I have an object which I am not sure is an NSString or not (could be NSNull, for example when reading a json into an NSDictionary) and I would like to get an NSString* if it is a valid string, nil otherwise.
Is there an accepted way of doing this except writing my own function?
+(NSString*)stringWithMaybeString:(id)maybeString {
if...
hi, i'm using the following code to get the property date of the video but the problem is it return as NSdate and when i tried to assigned it to UILabel.text in UItable the program crash on me. Can anyone help me?
void (^assetEnumerator)(struct ALAsset *,NSUInteger, BOOL *) = ^(ALAsset *result, NSUInteger index, BOOL *stop){
if(re...
Hi guys,
On this following screenshot, if I click on "v" from "Available Kiosks" this is launching the action of the back button... (not with the second "a").
I don't understand why, I've nothing special in my code (this is the default backbutton handled by the navigation controller).
I also have the same bug with another application...
I need a UIAlert with image.As far as i know UIAlertView does not have a constructor which takes image.So now i need to create customAlertView. But i dont know how to do it.Is customAlertView will be a subclass of UIAlertView so that it takes the delegate method of UIAlertView or what???i search a lot but did not find a implementation of...
what are the steps to simply create a core-data application(using window based apps). without using core data for storage at the time of creating new project
...
import
I am trying to implement a custom cell to use in my tableview
This is my custom cell interface class
@interface CustomCell : UITableViewCell {
IBOutlet UILabel *nameLabel;
IBOutlet UITextView *inputText;
IBOutlet UIImageView *image;
IBOutlet UIButton *btnBuy;
}
@property (nonatomic, retain) IBOutlet UILabel *n...
Hi, I'm working on an iPhone app. I've tried to make a simple query that works correctly on sqlite console but it doesn't work on my iPhone code.
This works and it show me all the fields:
const char *sqlStatement = "sessions * from animals";
This doesn't show anything, but works correctly on sql console:
const char *sqlStatement = "...
Hi all,
I want to write a simple media player which displays lyrics that are retrieved from the web.
I know once LyricWiki was such a source, but now no longer exists.
Does a new API or source for lyrics exist that I can use ?
When I do get the lyrics, how do I sync them with song ?
I know the MPMediaItem class has the MPMediaItemProp...
Hi All,
I have a code which returns selected row for NStableView as under:
int status;
NSUInteger selectedRow = [tableView selectedRow];
if (selectedRow == 0)
return;
But, when i have not selected any row in table view or if the tableview is empty, it returns junk value. How can i tackle with this problem.
...
I need to make a preference panel with section like this.
but what is the exactly compoment has effect like these
(section I means "General,Accounts,RSS...")
...
In C and C++ i use the popular memory pool allocator. Where a huge chunk of memory is allocated and then all small objects are allocated inside it. When done everything is freed with a single call. I was able to speed up some bottlenecks my app by factor 10.
Question is how can i do this with Cocoa?
How can i overwrite the alloc method...