I have a 5 bit integer that I'm working with. Is there a native function in Objective-C that will let me know which bit is the leftmost?
i.e. I have 01001, it would return 8 or the position.
Thanks
I am looking for a solution to create a "virtual" webcam device under OS X (that acts just as a normal hardware webcam, but the application has full control over what to output). I'm fairly experienced with C++, but not so much with Objective-C and OSX/Cocoa programming.
Anyone that can point me in the right direction, where to look and what I should be looking for? I've searched, but most of the results seems to focus on Windows and DirectX.
Thanks!
Hi I mostly do C++, Objective-C programming. And I found Xcode plus an auto completion/macro plugin (Completion Dictionary) quite adequate.
However, all people seem to praise over their pure text editors. I tried Textmate for a bit; liked its simplicity but dislike its files/framework handling.
Am I missing something here? Or, do Vim or Emacs have auto-completion as good as Xcode?
my popUpButton is in a window with a group of popUpButtons. If I try to click the 2nd of 4 vertically aligned buttons then the popdown menu will not appear. If I select the 3rd or 4th then the 2nd will now be selectable.
throughout my code the setEnabled on that popUpButton is :YES.
ideas on where to look in my controller?
This is a Objective C/Cocoa Question.
What is the difference in writing to files atomically on the iPhone in objective-c and not, is there any performance difference between the two?
Thanks in advance!
We are writing an API for iphone developers and we don't know what the best practice is for exception handling. We looked into NSError, standard POSIX way, NSException
What is the convention that most APIs use? Which is the most "Objective-C friendly"?
Hello, I'm brand new to ObjectiveC programing for the Iphone. I was wondering if it is possible to use a tab bar, and in one of the tabs have a navigation bar so that I could drill down? I tried to look for tutorials and found this one http://www.devx.com/wireless/Article/45161/1954, I got it to work as written but I couldn't figure out to display the data I wanted. Does anyone know how? or does anyone know a tutorial for complete beginners?
I'm new to XCode 3.1.2 and Objective-C 2.0. I've just discovered using breakpoints for logging instead of littering the code with millions of NSLog() statements. The problem is, when the debugger starts up it spews half a screen full of status and credits info into the console.
Is there any way to suppress this text?
All examples I find on shuffling arrays are for NSMutableArrays. Copying an NSArray to an NSMutable array, shuffling, then copying back always crashes the application. Is it even possible to shuffle an NSArray?
Anything in objective-c similar to Collections.shuffle() (Java)?
Hey you Objective-C bods.
Does anyone know how I would go about changing (transforming) an image based on the input from the Microphone on the iPhone?
i.e. When a user speaks into the Mic, the image will pulse or skew.
Thanking you!!
Hi guys,
I get a URL from a user. I need to know:
a) is the URL a valid RSS feed?
b) if not is there a valid feed associated with that URL?
Using Objective-c
Can any one help me to solve this.
Thanks in advance.
My problem is since an enum in objective-c essentially is an int value, I am not able to store it in a NSMutableArray. Apparently NSMutableArray won't take any c-date types like an int.
Is there any common way to achieve this ?
typedef enum
{
green,
blue,
red
} MyColors;
NSMutableArray *list = [[NSMutableArray alloc] initWithObjects:
green,
blue,
red,
nil];
//Get enum value back out
MyColors greenColor = [list objectAtIndex:0];
Is there some way in objectiveC to see if an instance is being touched such as:
- (void)viewDidLoad {
[super viewDidLoad];
if (recordButton.touched = YES) {
NSLog (@"record button got touched");
}
}
Can't they just make these things easy?
Could someone help?
I was told this a few times in this very site, but I wanted to make sure this is really the case.
I was expecting to be able to sprinkle NSLog function calls throughout my code, and that Xcode/gcc would automatically strip those calls out when building my Release/Distribution builds.
Should I avoid using this? If so, what alternatives are most common between experienced Objective-C programmers?
How to call the function in Objective-c.
for Example:-
I define the function in header (.h file):-
-(void)abc
and implement this function in implementation file( .m file):-
-(void)abc
{
//.....
///....
}
now how would i call this function on that place where i need it..?????
Can someone point me to the correct place to start development of a twain scanning appliation for the MAC osx. I have done some simple objectivec development in the past, but nothing interfacing with a device.
Hi,
could you tell me please - which object and which method can i use to fetch information about installed applications on OSX with objectivec or macruby?
I have a function which takes a custom struct as the argument. how can I figure out what the argument should be? I know it is a date format of sorts... (C library imported to Objective-C...)
I found some sample code from here.
static UIImage *backgroundImageDepressed;
/**
*
*/
@implementation DecimalPointButton
+ (void) initialize {
backgroundImageDepressed = [[UIImage imageNamed:@"decimalKeyDownBackground.png"] retain];
}
is it something like this - +(void) initialize method initialize static variables of a class ( interface ) in objectivec ? I have never seen this before.
Please need your guidance on it.
Thanks in advance for sharing your great knowledge.
Sagar
In Objective-C, I've seen, for example:
UIPickerView *tweetPicker
and
UIPickerView* tweetPicker
What does the asterisk mean (I know, the first part is a dupe...) and why does it go on different parts of the deceleration in different contexts?
I simply want to link a label to a slider in order for it to display the current value of that slider. This is my first time working with objective-c, and the problem seems far more complicated than in Java or C#. Help would be appreciated.
I am just learning objective-c but can't figure out whats wrong with my code
Code:
NSMutableDictionary *myDic = [NSDictionary dictionary];
[myDic setObject:[NSURL URLWithString:@"http://www.apple.com"] forKey:@"Apple"];