Hi,
I'm just trying to get a simple mp3 player working. I'm getting an error that I don't really understand.
I have an instance of AVAudioPlayer declared in my h file and I synthesize it in my .m file....
Undefined symbols:
".objc_class_name_AVAudioPlayer", referenced from:
literal-pointer@__OBJC@__cls_refs@AVAudioPlayer in P...
I'm writing a Cocoa app. There is a socket in the application, and whenever the socket becomes readable I want to read data from the socket, process the data, and update the user interface accordingly. I want to integrate the read event check in the main loop, i.e. I want to attach the socket to the main loop and have the main loop call ...
Hey all,
i have a NSDictionary which looks like:
{
"Item1" = 2.4;
"Item2" = 5.5;
"Item3" = 15.6;
}
To use this Dictionary Items in a Table View i have to transfer it to a NSArray, am i right?
So i try:
NSDictionary *dict = [myDict objectForKey:@"items"];
for (id item in dict) {
[_myArray addObject:[dict objectForKey:item]];
}
...
Has anyone tried exporting data to Numbers in iWork? I want to generate a spreadsheet programmatically but I'm not having much success.
I've tried unzipping a .numbers document and analysing the XML to see if I could interpret it but it's far too complicated. Also, I couldn't find the DTDs used by Apple.
Judging by what's out there thi...
Hi,
I am trying to perform a fetch on core data after i insert an entity, and I get 0 results.
I have a Person Entity.And i built a fetch Request in the DataModule GUI with the predicate:
name == "PERSONNAME"
Just before searching for the name i insert and save it first. and i know that works because i display the names in a table...
hi. i need to get the actual year, only the year but when i search for the result, i get always 0001. why is it?
with the component i can get the day and the month.
...
How do I disable the backbutton in a navigationcontroller?
When I hide the button like so,
self.navigationItem.hidesBackButton = TRUE;
the buttonarea is still tappable.
...
I've got a nice and short method to load textures in my iPhone app, where I glGenTextures(13, &textures[0]);. Of course at the end of it I do glDeleteTextures(13, textures);, but the memory isn't fully released untill I comment out this line:
CGContextDrawImage(textureContext, CGRectMake(0.0, 0.0, (float)texWidth, (float)texHeight), tex...
I'm using the Three20 library to display a photo gallery in my iphone app but the images are getting cut off when I click on them. Where do I specify in my Three20 lib (or preferably in my call to Three20) what the image dimensions should be?
...
Hello fellow coders,
I have created a class, that makes it easy to enter in the amount for a particular price in the same way an ATM machine allows you to enter in an amount, user does not enter the decimal.
This is a generic class called (AmountPicker), so that it can be used among many other classes. I am using it by invoking the pre...
Hi, I understand that UITableView will call (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath to get each of the cells for the table view. Say I have my data source is fetched over the internet and I have to account for latency. What will be the best way of "stopping" this method from be...
Hi,
I'm having a bit of a problem with Apples EAGLView and Texture2D. If I create an instance of EAGLView and draw some textures, it works great. However, whenever I create a second instance of EAGLView, the textures in the new view(s) aren't drawn.
Being new to OpenGL, I've got absolutely now clue as to what is causing this behavior. I...
If anyone has the app GymBuddy, then they will know what I am talking about. They seem to use the stock Number Pad keyboard but have added a "." button in the lower left as well as a bar across the top to switch to alpha characters. Does anyone know how to do this? Do I make a new view like the keyboard and pull it up and have the button...
I need to extract the contents of the title tag from an HTML page displayed in a UIWebView. What is the most robust means of doing so?
I know I can do:
- (void)webViewDidFinishLoad:(UIWebView *)webView{
NSString *theTitle=[webView stringByEvaluatingJavaScriptFromString:@"document.title"];
}
However, that only works if javascript ...
I need to store an array of user created objects (a user enters data for several properties and then commits it), and I need it to be available in a database or something similar so that I can call it up and display the data when the user calls for it even after the user quits the program(the persistent part).
Other considerations are ...
Hi i created a TTStyledTextLabel, works well.
Now i want to make URL clickable, i've done this:
textLabel.text = [TTStyledText textFromXHTML:[content objectForKey:@"content"] lineBreaks:YES URLs:YES];
but my links are still unclickable. Do i have to setup a UIWebView first? Where to declare it?
Another thing is, is it possible to re...
Hi Everyone,
I wonder if there's any way to loop inside a mailbox and get the list of messages inside the mailbox.
I want to open each message and take screen shot of the email. Is there any way to do this? Any reference?
Thanks for your help.
...
I'm trying to programmatically discover and then mount network volumes shared using OS X's file sharing from a Cocoa app. I'm using NSNetServiceBrowser to discover which servers are advertising file sharing - easy enough.
My question is about the next step - how do you discover what shares are available for a given machine? ie. given th...
In a pure C++ world we can generate interfacing or glue code between different components or interfaces at compile time, using a combination of template-based compile-time and runtime-techniques (to e.g. mostly automatically marshall to/from calls using legacy types).
When having to interface C++ applications with Objective-C/Cocoa fo...
Is there some way I can do something like:
@implementation MyView
- (void)drawRect:(CGRect)rect
{
// Get the thing I'm supposed to draw (CGImageRef, pattern, etc.) and draw it
// i.e. not real code
CGContextDrawWhatever(self.objectThatHoldsDrawing.drawing);
}
...