Hi,
How would I invoke an external application through the RubyCocoa bridge? I read something about NSTask, yet I have no idea how this should be translated in RubyCocoa. My goal is to have an IB_action to trigger a method which will run a terminal application with some parameters, i.e. ls -p $mydir, where mydir comes from an IB_outlet ...
if(lyricsId == areleased.trackId)
{
----------;
----------;
}
when i am working with above code it does not entered into that loop So, I used the below code,then it entered into the loop and i got out put.
if([lyricsId isEqualToString:areleased.trackId])
{
----------;
----------;
}
Is there any difference between == an...
Hey,
I've currently got a webserver set up which I communicate over SOAP with my iPhone app. I am returning a string containing a GUID and when I attempt to compare this with another string I get some strange results:
Why would this not fire? Surely the two strings are a match?
Thanks
...
I want to add the cells(values on cells) touched by user to a different table inside different viewcontroller.m ? How can achieve this? Any replies are very very appreciated by me cuz it is my senior project?
...
Hi all,
I wrote an iPhone app which uses a third party library. I crosscompiled this library successfully and everything works smoothly. But when I want to debug the application, it would make sense to also be able to debug the library.
So I compiled also the external library with debuging information (usign the gcc option -ggdb). But w...
I am fairly new to XCode and the Objective-C language.
When I am instantiating a class, for example an NSMutableArray, XCode will provide a whole lot of auto-complete options. Even for an empty class which simply extends an NSObject has many options, most of which seem completely useless.
What is the reason for having so many auto-comp...
Hello,
Is there a way to make a "makeKeyAndOrderToFront" without beeing in the Application?
If I am in Safari and in the Menu Bar there is a MenuItem to my App, after I press this, i want to show a window of my App in the Front (makeKeyAndOrderToFront makes this just if you are in the Application).
Which way can I use? And how can I a...
I simply want to change a variable of an object from another class. I can compile without a problem, but my variable always is set to 'null'.
I used the following code:
Object.h:
@interface Object : NSObject {
//...
NSString *color;
//...
}
@property(nonatomic, retain) NSString* color;
+ (id)Object;
- (void)setColor:(NSSt...
Hi,
While playing with RubyCocoa, I keep progressing with my idea for my application. Because my application will be going to use configuration files, I would like to know how I discover the relative path to store these inside my application structure (or if a better idea emerges, please elaborate also the "why").
Also good for me to ...
I've two TableViews (one SourceList and one Normal TableView). I'm not using ArrayControllers, just using:
- (id)tableView:(NSTableView *)aTableView
objectValueForTableColumn:(NSTableColumn *)aTableColumn
row:(NSInteger)rowIndex;
- (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView;
this to display the Row Conte...
This should be so simple... but something screwy is happening.
My setup looks like this:
MainViewController
Tab Bar Controller
4 tabs, each of which loads WebViewController
My AppDelegate contains an ivar, tabBarController, which is connected to the tab bar controller (this was all set up in Interface Builder). The leftmost...
I had used the below code to get the row index of the picker view with two components.
But there is two warnings saying "Local declaration of pickerView hides the instance variable. Anyone please help.
(void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component
{
int pos1 = [pickerView sele...
Is there a way in objective-c/Cocoa to alloc an object when the class name isn't know until run-time. I seem to remember something about this a while ago, but can't find anything on it now.
Something like:
[[@"MyClass" alloc] init];
I seem to recall a function that would return some kind of class id based on a string that can then b...
I'd like to read packets from an audio file, but I don't want to send them to a playback buffer. I just want to get an array of the packets, ideally as floats. I've prepped the audio and then want to call:
OSStatus err = AudioFileReadPackets (audioFileID,FALSE,outBytes,NULL,0,numPackets,whatGoesHere?);
But what goes in that last argum...
Hi I have an enum declared like this:
typedef enum {
Top,
Bottom,
Center
} UIItemAlignment;
In my code I try to use it like this:
item.alignment = UIItemAlignment.Top;
I get an error like this: " Expected expression before 'UIItemAlignment' "
If I use only:
item.alignment = Top;
everything works fine bu...
Let say here is my stack layout
View3 --> Top of the stack
View2
View1
HomeView --> Bottom of the stack
So I am in View3 now, if I click the Home button, I want to load HomeView, meaning that I need to pop View3, View2, and View1. But if I pop View3, View2 will be displayed. I dont want that. I want View3, View2, and View1 be rem...
I am trying to learn how to write plugins using SIMBL. I got my plugin to load with the target application, and also know the method that I wish to override. However, I am not able to use class_getInstanceMethod correctly based on snippets on the Internet. Have things changed in OSX 10.6 and/or ObjC2?
The following code from culater.net...
I have a method that returns an NSRange. When I call this method from outside the class I get a compile error.
NSRange tmpRange;
tmpRange = [phrase rangeInString:searchString forString:theLetter goingForward:YES];
return tmpRange.location == -1;
in the .h file:
#import <Foundation/Foundation.h>
@interface Phrase : NSObject {
}
- (...
Are there any libraries to parse Textile (Textile to HTML) which will work in an Objective C iPhone app? C libraries will work too.
Update: I couldn't find any sufficiently developed libraries in C/Obj-C, but I did find one written in Javascript, which I used through an invisible UIWebView.
Link: Javascript textile parser
...
So I have a huge UITableView, between 1000 and 3000 rows. Each row needs to, when selected, expand to include several buttons. I do this by rendering the buttons below the cell, enabling clipping on the cells, and then just animating a change in height when they're selected. So I have heightForRowAtIndex checking if the row is selecte...