I am trying to manipulate an image using a chain of CIFilters, and then examine each byte of the resulting image (bitmap). Long term, I do not need to display the resulting image (bitmap) -- I just need to "analyze" it in memory. But near-term I am displaying it on screen, to help with debugging.
I have some "bitmap examination" cod...
Hi
It seems that Objective C jumps thru hoops to make seemingly simple tasks extremely difficult.
I simply need to create a sequence of strings, image1.jpg, image2.jpg, etc etc
ie in a loop
var imgString:String='image'+i+'.jpg;
I assume a best practice is to use a NSMutableString with appendString method?
What am I doing wrong??
NSM...
Using spacemanager, I need to perform an action on select bodies after each step, so I figured that defining my own C function for iterateFunc would be the way to go.
Everything works great, except I'm not sure how to then call an obj c method in the same class. In other words, an obj c class contains both the c function replacing itera...
I tried setting the color of the backround of the flipsideView in interface builder, but for some reason it doesn't show it in the iphone simulator. It always displays this dark crosshatching backround. How do I get it to display my selected color in the backround?
...
Hello, I'm making an application, in which I need to run a code that will tell system events to keystroke a certain phrase. Like in an AppleScript, I would do:
Tell Application "System Events" to keystroke "This is a test"
I don't know how to do this from Xcode, and I would really appreciate any help. Thank you!
...
Having a real problem with this one...Tried using cookies to store variables, etc. but no luck.
Writing an iPhone app where the User has to log in. There is an HTTPS call to get the person's userid, which is used practically everywhere else in the app, so that either has to be stored in a global variable or a cookie (for sending message...
Apologies if this is a basic question, I am just starting with Objective-C and trying to wrap things around in my head!
I have a simple class of the form:
@interface Whatever : NSObject {
int somePrimitive;
SomeObject* someObject;
}
@property (nonatomic) int somePrimitive;
@property (nonatomic, retain) SomeObject* someObject;
...
I'm some trouble adding strings together for a UITextView in my app. The method I've been using is this
(header)
#import <UIKit/UIKit.h>
@interface calculatorViewController : UIViewController {
IBOutlet UITextView *output;
}
-(IBAction)b1;
@property(nonatomic, copy) NSString *output;
@end
(main)
#import "calculatorViewCont...
Hi
having an issue using a NSMutableArray;
In my implementation file applicationDidFinishLaunching method I have
_imgArray = [NSMutableArray array];
and _imgArray is defined in my .h file as
NSMutableArray *_imgArray;
After populating it, it traces out correctly.
The problem is, in another method in my implementation file, I can'...
Hi,
I have a Core Data Entity which has three properties startDate, endDate and duration. All three properties are persistent properties. I would like to know how I can calculate and update the duration property whenever the value for startDate and endDate changes?
BTW, I won't be able to make the duration as transient property since I ...
Hi
Frst of all wanted to send out a huge thanks for the great feedback and support.
I have a simple application working, right now simply loads a sequence of images and alows the user to step thru the images by clicking a button.
All of my logic is in my Application Delegate class, with the image loading, initialization of UIImage Views...
Hello people, this would be my first question after signing up!
Anyway heres my question, I did Java at university and I was always told I am a good programmer. However I never pursued it as a career - I went into support and management instead. Im pretty much bored with my job, I have therefore started to learn Objective C so that I can...
Hi guys, I've searched and read and still haven't found a concrete answer.
Brief:
I have an application where I declare an NSMutableArray in my AppDelegate to synthesize when the application loads. (code below). I have a SecondaryViewController call this function, and I have it output a string to let me know what the array size is. Ev...
How can I gain access to Core Data objects from Javascript/WebKit on Mac OS X? I've made custom subclasses of NSManagedObject for each of my tables, with accessors defined using @property/@dynamic for each attribute, but neither isSelectorExcludedFromWebScript: or isKeyExcludedFromWebScript: is called for any of them, so Javascript just...
I have a two classes, a controller called "AppController" and a class called "URLDelegate" that encapsulates the sample NSURL code from Apple's URL Loading System Programming Guide.
The guide repeatedly mentions declaring the receivedData instance variable "elsewhere." I assume this means outside of the URLDelagate class, because if I ...
I am creating an app with three tabBarItems, but I want to control four ViewControlers with three tabBars. I am trying to use one tabBar for two different viewcontrollers. I am able to change the tabBartitle and icon upon tap, but I cannot reset it so it can go back to it's previous status with previous title and icon. Also, I am confuse...
I have the following code in my AppDelegate.h file:
@class mainViewController;
@class AboutViewController;
@interface iSearchAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
mainViewController *viewController;
AboutViewController *aboutController;
UINavigationController *nav;
}
@property (nona...
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.
...
Hi All,
I am making the ReverseGeoCoder request with the following latitude and longitude
Latitude = 37.296740
Longitude = -122.001878
I am getting an error as "/SourceCache/ProtocolBuffer/ProtocolBuffer-19/Runtime/PBRequester.m:446 server returned error: 503"
With the ReverseGeoCoder fail message as "Error Domain=PBRequesterErrorD...
I am trying to learn how to use predicates and so am trying to replace the following working code with filteredArrayUsingPredicate...
[filteredLocations removeAllObjects];
for (NSString *location in locations) {
NSRange range = [location rangeOfString:query options:NSCaseInsensitiveSearch];
if (range.length > 0) {
[filteredLocat...