Hello.
If there a way to set the "registration color" (all components 100%) in the CGPDFContext? Context deals with this color in source and target documents (I can open a PDF, re-save it and registration color is preserved), but I can't find a way to draw a line or fill a rect with this color.
I have played a lot with NSColor and color...
Hey,
In an application I'm developing, everything starts from a navigation controller, which then loads up several pages.
My question is, how can I load up a new view ABOVE this? The closest I've got is to do this in the App Delegate:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launch...
so I want to parse an xml and display (in a UITableView) the "subjects" in ascending order depending on "lessons"
XML:
<parfumeo_kkn>
<tt_timetable>
<id>1015</id>
<day>1</day>
<class_id>98</class_id>
<lesson>9</lesson>
<teacher>bt</teacher>
<room>V1.2</room>
<subject>M</subject>
<pr_id>54</pr_id>
</tt_ti...
hi
is there a way to give one tabbaritem in UITabBarController more width then the others.
by default they are all sized the same.
thanks
Alex
...
I am trying to listen for UIMenuController Notification in iphone sdk 3.0 .
But it seems that my notification can never get called. Here is my code:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(menuControllerWillShow:) name:UIMenuControllerWillShowMenuNotification object:nil];
and my method
- (void)m...
How to get the location of the file in mac os using objective c?
/Users/objc/Downloads/x.pdf
Any foundation classes for this?
please give me some sample code.
...
I am trying to query a table using NSPredicate. Here is essentially what I'm doing:
NSNumber *value = [NSNumber numberWithInteger: 2];
NSString *columnName = @"something_id";
NSLog(@"%@ == %@", columnName, value);
NSPredicate *refQuery = [NSPredicate predicateWithFormat: @"%@ == %@", columnName, value];
NSLog prints out what I expect...
I initialize a view(Image) through:
Image *myImageView = [[Image alloc]init];
myImageView.myId = randomImageNumber;
[myImageView initWithImage:myImage];
At the Image class I do a Log(LOG1) and get the previously set randomImageNumber.
Later on, in the very same Class, I do a second Log(LOG2).
Why does my second log have no va...
How and when is released IndexPath object which is returned in UITableViewDelegate?
let's imagine code:
//my method in my object
{
NSNumber *number=[[NSNumber alloc] init];
number=[[self methodreturningnumber] retain];
[delegate didSelectItemAtIndex:number];
}
in my delegate I have method:
-(void)didSelectItemAtIndex:(N...
Hi!
In XCode, if I have an NSString containing a number, ie @"12345", how do I split it into an array representing component parts, ie "1", "2", "3", "4", "5"... There is a componentsSeparatedByString on the NSString object, but in this case there is no delimiter...
Any help is much appreciated!
Graham
...
I want to get the name of a sender in Objective-C. For example, below I have a method which is called by an instance of UISlider in Interface Builder, I want to know what the instance name of it is so I can later add conditional blocks to the method for which instance of UISlider called the method.
e.g.
-(IBAction)sliderChanged:(UISlid...
i know its been asked before lots of times, but i just cant seem to get it. i have my map drawn, i have annotations added, and i would like to add disclosure buttons to the annotations.
i am adding the annotations from an array in my viewdidload method by pulling in from a text file
NSURL *dataUrl = [NSURL URLWithString:@"http://nne.ez...
I have an Objective-C view controller class, from which I am trying to call a straight-C (not Objective-C) function. I want to pass in a string variable by reference, set its value inside the C function, and then back in my view controller I want to convert this to a normal NSString object.
Since I can't pass in an NSString object dire...
Hi, guys.
I'm having trouble when managing arrays that are content of another array. : /
I have the plist shown below as an ivar called tools on my Manager class:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array...
Hello there,
I was wondering if anyone has the TouchJSON framework working in conjunction with basic apache HTTP authentication. Essentially the directory of the RESTful webservice that I am calling is secured with basic http authentication. My calls are obviously all returning null now. Has anyone managed to get this working? I could e...
Hello all, How to design a tableview similar contact application in iphone.........
...
Hello,
a website has 2 textareas and 2 submit-type buttons. Both textareas are simple text <input type=text name=to class="text" value="" maxlength=20>.
One button is send button <input type=submit name=s value="Send"> another is erase <input type=submit name=reset value="Erase" onclick="eras=1;"> .
Is it somehow possible to replace th...
Hello stackoverflow,
I am trying to build a custom table view using a cell that I built in IB. I am getting a strange error:
<BroadcastViewController 0x4b4f5f0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key postText.
Everything is wired up correctly in IB to the cell controller. Not really s...
I'm looking at some open source code and trying to understand why the author has done something in a particular way.
The class is a wrapper around NSArray to create a stack data structure with push, pop, etc.
One method is topObject which returns the topmost object on the stack and its implementation is:
- (id)top {
return [[[stac...
Hi all,
I want to know if this assignment is correct
id var = 9;
Will var be assigned the value 9 or do we have to wrap in some wrapper class like NSNumber?
...