CGPathRef encoding
Is it possible to encode CGPathRef variables? I mean is there an encodeObject:forKey like method for CGPathRef variables? ...
Is it possible to encode CGPathRef variables? I mean is there an encodeObject:forKey like method for CGPathRef variables? ...
I am exploring with compiling an application with GNUstep on Windows. This is my main.m file: #import <???/???.h> int main(int argc, const char *argv[]) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; [NSApplication sharedApplication]; [pool release]; } I realize this is an incomplete fragment to say the le...
What's the rationale behind placing #import statements in .m rather than .h files in Objective-C? Apple examples bundle them in .m file unless object is used in interface declaration (.h), and docs state that this is correct ("In the interface file, you first import any required header files.") What's confusing me is that .h is suppos...
Hi All, I am writing an iPhone application and would like to sync data over Wi-Fi between the iPhone and a complementary Mac application which I will also be writing (much like what is accomplished with Things and 1Password). To provide specific context, I need to be able to upload a CSV file to the iPhone application, have the ability ...
I want to display a label showing a number in each cell of the tableview but the label is only visible when I click on a row (when the cell is highlited) - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UILabel *label; UITableV...
Hello Everybody. I’m coding the Record application. However, I have problem with copying the file from iPhone device to the PC after recording. I used Attach File function on Email but it doesn’t allow with large size > 10MB file. I haven’t found any solution yet for this problem. iTune 9.0 has “Include Voice Memos” function, can i do th...
hi i am creating textview(editable) through coding in uitableview in cellforrowatindexpath delegate. textview is showing in every row correctly. the problem is that when i am enter text in textview and scroll the tableview, then text disappear from textview. if anyone has any idea? ...
Hi, I am working on an iPhone app I read a key from root.plist like this : NSString *Key1Var = [[NSUserDefaults standardUserDefaults] stringForKey:@"Key1"]; ("Key1" is a PSMultiValueSpecifier for which a default string value has been set already in root.plist) That works fine, once the user makes settings. But if the user runs the ap...
I have a UIWebView which I want to put under my translucent UINavigationBar. Normally when I put a UIScrollView under a translucent UINavigationBar, I set its contentOffset such that all content will be initially pushed after the bar so that it can be seen; thereafter, the user can scroll text and it will underlap the bar. The problem i...
I was wondering whether there is a solution to raise an event once after 30 seconds or every 30 seconds in CocoaTouch ObjectiveC. ...
When you have an NSArray and you want to evaluate and change the elements, you can't change the array from inside the loop. So, you create a mutable copy that can be changed. code example: NSMutableArray *bin = [NSMutableArray arrayWithObjects:@"0", @"1", @"2", @"3", @"4", @"5", @"6", @"7", nil]; NSMutableArray *list = [NSMutableArray ...
Hi friends, i am newbie to this forum. I have created my first iPhone application and created a distribution provision for executing in iPhone device. While Sync my application to iPhone from iTunes, the icon of application is gud. After sometime the icon in iTunes gets changed into an square image. I have followed the following steps...
Hi, In my app i want to drag a image any where in the view and want to resize the image by pinching,gestures. I am able to drag the image any where by using - (void) touchesBeganNSSet*)touches withEventUIEvent*)event and - (void) touchesMovedNSSet*)touches withEventUIEvent*)event . But am not able to resize the image can any please he...
I have an object that when you instantiate it and send it a message it takes a long time to run. It is designed to call back a delegate object with the results of the job. There are multiple calls back to the delegate over time. I know I need to put the job in a thread. I know how to make a thread. I know that if a thread wants to send...
What I wanted to do is take a log on battery percentage. I know the equivalent in linux is sysctl(hw.acpi.battery.life). However when I went through the man of sysctl in mac os x I did not find the equivalent code to find it. Can some one point out how to do this using objective c. I can call sysctlbyname but that doesn't have this as in...
Hi all, I've recently come across this website and I've been trying to add to my call out view a button (from a image). The code on the websites example works just fine, but when I tried to add in the same code to my project I'm not getting the same results. There is obviously something I've missed but I cannot seem to work this one o...
I'd like to call (void)setDoubleValue:(double)value using performSelectorOnMainThread:. What I thought would work is: NSNumber *progress = [NSNumber numberWithDouble:50.0]; [progressIndicator performSelectorOnMainThread:@selector(setDoubleValue:) withObject:progress w...
I'm creating a base class that has an isDirty flag. It is set any time one of its properties changes, but since it's a base class, it doesn't know what its properties are. So basically, on every subclass, I have to override every - set: method to something like this: - (id) setName:(NSString *)value { if ([name isEqualToString:value...
In my @interface theres a NSArray *Monate followed by: @property (nonatomic, retain) NSArray* Monate; If i do: filePath = [[NSBundle mainBundle] pathForResource:@"SomeFile" ofType:@"plist"]; self.Monate = [NSArray arrayWithContentsOfFile:filePath]; in the constructor, it gets set to an autoreleased object (is that correct?). So s...
I'm trying to create an NSDictionary that stores objects with keys based on IDs. I know I can use NSNumber objects, but why can't I just use an int instead? Is there some class that supports this? Something like an NSSet almost works, except I can't access it by it's hash value (I've overridden - (NSUInteger) hash to return the object...