Hi,
Should I put all my methods in one category (I mean for the same kind of object) or should I split them up in many files? (Something like NSStringAdditions vs. NSString+this and NSString+that)
...
Hi
I'm currently doing this to add a button to my navigation bar to call the SwitchViews method.
UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:@"Back to App"
style:UIBarButtonItemStyleBordered
...
I'm building an app in .NET and C#, and I'd like to cache some of the results by using attributes/annotations instead of explicit code in the method.
I'd like a method signature that looks a bit like this:
[Cache, timeToLive=60]
String getName(string id, string location)
It should make a hash based on the inputs, and use that as the ...
I want my text box to blink (like the old LCD clocks) and right now I'm calling a myriad of NSTimers and selectors that wait, change the alpha, wait, then change it back. Even with this it looks really bad, and I'm thinking I have to put an NSTimer to gradually change the alpha, but from what I hear they are not meant for things of that ...
Heya guys.
I'm currently working on an MVC Style framework for a company and for security reasons I need to make sure that the controller / method that's passed via the Query String is valid chars to the RFC (which I can't find).
I need to be able to validate / sanitize class names according to what's allowed by the PHP interpreter
Fo...
I really had no idea what to title this question.
Assume I have a windows form application. The GUI is complex enough to require two custom user controls, "LeftSide" and "Rightside" which each are composed from various buttons, labels, and maybe even another custom user control.
My question:
I am in in the scope of the "Rightside" con...
I'll make this as short and to the point as possible, but it's kind of a complex issue. I'm writing in Java on a Linux platform, for whatever that's worth.
Short version of the goal: I want to have an abstract class called Client that acts as a generic container for client connections. Client should thread each of its connections. I ...
How does Java handle arguments separated by | ?
for example
private void foo(int i) {
System.out.println(i);
}
private void bar() {
foo(1 | 2 | 1);
}
Which would give the output
3
I've seen this used in SWT/JFace widget constructors. What I can't figure out is how the value of i is decided.
...
Hi everyone.
I'm using this JSON framework. It's working well but I would like to put a loading view on my main screen to show that the iphone is downloading datas. I have searched for some delegate methode like - jsonBeginParse and - jsonEndParse but unsuccessfully.
Have got an idea ?
Thanks a lot !
...
Dear Sirs,
We are implementing some of the event callbacks of JVMTI ( http://java.sun.com/j2se/1.5.0/docs/guide/jvmti/ ) in the Dalvik VM. However, we are having trouble in event Method_Entry and Method_Exit.
In our current implementation, we can only intercept the Method_Entry event of the some system initialization methods, including...
While inheriting, all instances of super class are of subclass.
Even after then we are unable to access private methods! Though, the instance is there.
Why is it so?
...
When creating search forms in web pages, I generally use the GET method. This allow the results to be URI Addressable. It also makes for easy pagination of results in the standard manner.
But what about a form with a large number of options and fairly long field names? Using a GET request means that the URL of the results page can actua...
Hi, im searching for a convenient way of adding new arguments to multiple init-methods. its a little bit hard to discribe but my problem is the following:
I have a class witch implements various init-methods. f.e.
@interface Circle {
CGPoint center;
float radius;
}
- (id)initWithCenter:...radius:...;
- (id)initWithRect:...;...
I know of a couple of rules regarding Objective-C categories:
Category methods should not override existing methods (class or instance)
Two different categories implementing the same method for the same class will result in undefined behavior
I would like to know what happens when I override one of my own category methods i...
I have an application the is loaded with forms in every view. I've become rather familiar with CakePHP's array syntax and I use the $this->data parameter a lot.
I fell in love with skinny controllers and fat models, so I put as much code in my models as is possible. Unless I'm doing something complex, most of my controller methods loo...
Hello,
How can i control the order of virtual functions in the virtual table? Are they laid out in the same order that they are declared in?
When inheriting a class with a virtual table, is the virtual table of the inherited class an extension of the base class, or is an entirely new virtual table created with only the inherited classe...
Hi all,
Can you help me how to develop custom methods in CakePHP framework.
I found this code in stackoverflow, but it's global, it's not "model related".
Can you help me with this?
Thank you in advance!
...
Hey everyone
i have a question regarding the call-methods handling in object-c.
I downloaded the apple sample code for the mail composer (http://developer.apple.com/iphone/library/samplecode/MailComposer/Introduction/Intro.html).
When the user touches the "Compose Mail"-Button in the sample-code the Methode
-(void)displayComposerShee...
Hey Everyone, If you've seen my previous post you'll know im working on an airline program using Python.
Another issue that poped up was that after I launch one flight, it calculates the duration of the flight and replaces the button which is used to launch the flight. But when I buy another aircraft, it changes both flight statuses to ...
Is there some method to clen all model in Django (cleen table in database)?
Sorry i'm not a native english speacker. That why i'm making a lot of misstakes and some time asking question whith i cant undersand by reading official documentation. But I'm doing my best.
...