I have an instance variable declared in the implementation file which can be accessed using the property defined by synthesize
@synthesize myProperty
Now, I want to assign this property something inside the Selector event of the MenuItem in cocos2d library. You can think of it as a accessing myProperty in a callback function. For som...
I want to change the feed source...
the code is:
//
// BlogRssParser.h
// RssFun
//
// Created by Imthiaz Rafiq on 8/15/09.
// Copyright 2009 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
@class BlogRss;
@protocol BlogRssParserDelegate;
@interface BlogRssParser : NSObject {
BlogRss * _currentI...
hello in my application i use the code below to handle and play sounds, I want to know if i need to release any things or nothing to do.
the code :
-(void) playNote: (NSString*) note type: (NSString*) type
{
CFURLRef soundFileURLRef;
SystemSoundID soundFileObject;
CFBundleRef mainBundle;
mainBundle = CFBundleGetMainBundle (...
Hi,
I have 2 tableviews in my view right now.
One is grouped: where I can press and push to another view(like a menu)
the other one is plain: where I want to show the searchresults
I know I can use the displaycontroller but I don't know how to show the results on the table
Can someone tell me more about this??
Thanks in advance
...
It seems from experimentation that the collection expression is evaluated only once. Consider this example:
static NSArray *a;
- (NSArray *)fcn
{
if (a == nil)
a = [NSArray arrayWithObjects:@"one", @"two", @"three", nil];
NSLog(@"called");
return a;
}
...
for (NSString *s in [self fcn])
NSLog(@"%@", s);
The ...
Hi,
I wrote a method for load Image into CALayer. This is the code:
- (CGImageRef)loadImage:(NSString*)path {
// Get data image
CGImageRef image = NULL;
NSData *data = [NSData dataWithContentsOfFile:path];
CFDataRef imgData = (CFDataRef)data;
CGDataProviderRef imgDataProvider = CGDataPr...
i tried doign this: Values = [[NSSet setWithArray:Values] allObjects]; and no sucess,
Thanks
...
Is it possible to use the JQuery effects in the existing Xcode project?
plz let me knw if it is possible..
...
Hi all,
This may be a simple problem. I have a UIScrollView with 3 views. I need to display 3 dots like Indicator ( to indicate there are more pages to the user). How do i do this?
Thanks
...
Hi, on iphone with multitasking and iOS 4.x i run my app it work properly, now if i hit the home button (send a sms) and then double click the home button to return to my app i've notice that the app run like the first time not continue where i left it what is the solution to return to the point where you click the home button.
thanks
...
Hello,
In my app I use a page control and a UIScrollView to page horizontally, I'd like to be able to enable vertical scrolling on each page. Now I know you can nest UIScrollViews in order to achieve this, there is however one problem in my project. Each of the pages uses a view controller consisting of a view, with a background image ...
Hello,
I have allready tryed solutions from a few posts, but no luck.
The problem is that i'm facing is probably whit time zones. Both on device and simulator UIDatePicker and NSDateFormatter are returning incorrect dates, adding or substracting the difference from GMT 0, from the selected date (according to the current time zone set on ...
I need a FTP TLS Connection for my iPhone-App. A normal FTP-Connection works fine. But I need also a secure TLS connection.
I used the code from Apple´s SimpleFTPSample for the iPhone:
ftpStream = CFReadStreamCreateWithFTPURL(NULL, (CFURLRef) url);
self.networkStream = (NSInputStream *) ftpStream;
[self.networkStream retain];
self.netw...
I have a program which works normally. Then I downloaded some code from http://github.com/matej/MBProgressHUD to show a progress meter when doing something.
This is the code that makes the progress meter pop up.
[HUD showWhileExecuting:@selector(myTask) onTarget:self withObject:nil animated:YES];
This will show a progress meter while...
OK, first and foremost, I am using GNUStep as a way to learn Objective-C, so there may be some differences between the GNU and the Apple implementation. That being said, it shouldn't affect my question.
Anyways, to understand my conundrum, please parse the following code into your visual receptacles:
#import <Cocoa/Cocoa.h>
int main()
...
I'm trying to implement a category of an existing class.
There is a static variable in the existing class.
If I try to access the static variable from a category, I'm getting
an error that the static variable is undeclared.
Is it possible to access static variables in ObjC Categories ?
...
i have an NSTableView with custom view cells from NSCell
i'm now trying to get the double click action with this code
[theTableView setDoubleAction:@selector(myDoubleClick:)];
and i have the method set like this:
- (void)myDoubleClick:(id)sender{
NSLog(@"double click");
}
when i double click the cells nothing happens and th...
I made a preference pane and every time it loads the System Preferences loses focus. If I remove all controls from my pref pane window the issue will not occur but as soon as there's any sort of image or control in the window it occurs.
What am I missing?
...
Hi guys!
I need help with functions in objective C?
In C++ i can make a function like this:
int testFunction(int zahl) {
int loop;
loop = zahl * 10;
return loop;
}
this function multiply my zahl with 10 and returns the result. In C++, i can call this function whenever i want with:
testFunction(5);
and it returns 50. ...
I'm using this library: http://benreeves.co.uk/objective-c-hmtl-parser/ to parse HTML for a little iPhone app I'm making. I have got the code working so far, but it fails when presented with an accent (so far only experienced é). This is the code I'm using:
NSError * error = nil;
HTMLParser * parser = [[HTMLParser alloc] initWithContent...