hi,
I have a textfield cell and a push button in the cocoa .
I want to copy the text in teh textfield by clicking on the button.
in clipboard.h
#import <Cocoa/Cocoa.h>
@interface clipboard:NSObject {
IBOutlet id but1;
IBOutlet id numf2_1;
NSPasteboard *pasteBoard;
}
- (BOOL) writeToPasteBoard:(NSString *)stringToWrite;
...
I want to take the next step and make a game, I had Connect4/4 in a Row in mind.
How would I go about with this, I made a pong game from a tutorial and now I want to make something on my own. This type of game doesn't seem that hard to make or perhaps it is?
Anyone got any good advice or some sample code or instructions?
Thanks for a...
i am trying to making retrieve data from sever side to ipod ,in objective-c
i try but i am not success in retrieve data from sever to ipod
i retrieve image from sever to my ipod i get success
but when i try to retrieve song i am fail to retrieve to song from sever to ipod
can any one help me or give me some solution or hint how to re...
I know some of the differences such as garbage collection and 64-bit support, but I have a book based on 1.x and I was wondering if I would be wasting my time learning off of that, and then, stepping up to 2.1 after reading?
...
Hello again. I have the following category:
@interface UIViewController (Additions)
- (void)exampleMethod;
@end
-----
#import "UIViewController+Additions.h"
@implementation UIViewController (Additions)
- (void)exampleMethod {
NSLog(@"Example.");
}
@end
I also have the following abstract class:
@interface DFAbstractViewCont...
Hi,
This is a pure physic question but i don't know why it doesn't work....i have a moving object.i get the value of vcos(theta) and vsin(theta)...from this i calculate the velocity and angle of motion.....also i know another point (x,y) and want to direct the object to this point.I think i need to apply a certain force(force must hav...
I want to add the split view in the one tab bar item. i have added that but when i click on the that tab bar item, the tabbar get disappear.
so I want to know the correct way of adding the spitview in the tabbaritem.
...
Hi,
I need check my values from NSArray which stored dynamically, so how should i print the array values in objective-c?
Sri
...
As per the links at Osirix webpages, the link https://osirix.svn.sourceforge.net/svnroot/osirix/plugin seems to be destroyed where Osirix Plugin Generator apple script and the tutorial for developing plugin for osirix are present. Please guide how to start for developing a simple plugin for osirix in obejective C. Thanks!
...
Hi all
im getting a EXC_BAD_ACCESS error on this line.
[(CCMenuItemSprite*)[profileSelectionMenu getChildByTag:333] setNormalImage:normalSprite3];
Basically im just trying to change the normal image of a CCMenuItemSprite.
normalSprite3 and selectedSprte3 are both CCSprite. and i set the properties off them to retain but it still alway...
Let's say I've got several UILabels which have been set up in IB and connected to IBOulets in code (label1, label2, label3, label4)
How would I create these variable names within code, so that I could change the text of each one in a loop, where the labels are taken from a NSArray.
Here's the pseudo-code:
labelArray = [NSArray arrayWi...
I already know how to parse XML Elements that contain content (<this> Content </this> in Objective C but I am currently using a web service that returns the content I need in between two closed elements (<begin-paragraph/> The content I need <end-paragraph/>) I have been looking online for any examples of anyone else doing this, but I c...
Im making an application where i got a cue list, and some other views around it. When the user presses Space, i want the next cue to play. No matter what view is first responder, unless its a textfield. So even though another table is selected, i want the cue to get played.
I have made a custom class that acts as cue controller, this i...
Hello,
As my program allows the user to import any .mp3 file into their library, there is a possibility that they might try to play an mp3 that is in someway corrupt. My audio player uses NSSound to play the file and currently when presented with a dodgy mp3 file it crashes with an EXC_ARITHMETIC exception. A brief look on this site tol...
Hi All,
I was using the following method for creating NSDate Object based on the timezone and locale.
descriptionWithCalendarFormat:timeZone:locale:
[[NSDate date] descriptionWithCalendarFormat:@"%Y-%m-%d"
timezone:nil
locale:nil];
But this method is no mo...
Hi guys, I got a small problem
.
I have this date format from .net json output:
Date(1280471989140);
when I try to convert using
+ (NSDate*)dateFromUnixDate:(double)unixdate {
NSTimeInterval unixDate = unixdate;
return [NSDate dateWithTimeIntervalSince1970:unixDate];}
but I got the wrong date back,why?
thanks
...
Is it possible to capture command-key sequences in 3rd party iPad/iPhone apps?
Long version:
On my excellent journey of discovery vis-a-vis my new iPad with it's gleaming keyboard dock, I discovered, much to my joy, that when editing text in standard issue text views; commands ranging from ⌘C/⌘P for copy-paste and ^A, ^B, ^E and friend...
Hi,
i want to change the locale programmatically in my iphone app (basically because not all languages are supported by iphone itself, it should be possible for the user to switch language only for my application). I have seen on a different question http://stackoverflow.com/questions/1669645/how-to-force-nslocalizedstring-to-use-a-speci...
When I try to use the @dynamic directive in a category implementation, I get "@dynamic may not be specified in category without an interface".
Does anyone know if there's a proper way to use this directory in a category ?
...
I have a hidden UITabBarController but it seems to cover up the buttons that I'd like to place at the bottom edge of the screen in the home view.
// hide the tabBar for the home screen
- (void) viewWillAppear:(BOOL)animated
{
self.tabBarController.tabBar.hidden = YES;
}
Is there a way around this? The tab bar will be shown for the...