objective-c

How i play Mp3 from server from avaudioplayer

Hello, I am new in iPhone,Anyone tell me please how i play audio uploaded on server. in my application some songs are from local and some others are from Server,Locally i play songs successfully but how i play a audio file from server from AVAudioplayer. Thanks, Arun ...

What does an MKAnnotation and MKAnnotationView represent?

What does an MKAnnotation represent? Is it like notes on the map - like if you open up google map and click on little icons? ...

NSArray : release its objects, but keep a pointer to it.

Hello, I declare an NSArray in my code then building the array from another array. I process my NSArray and when I'm finished, I would like to release the objects, but I'm reusing this pointer to NSAarray again later to do the same process (creating the array from another array, process then releasing).. So I need to keep the pointer. Wh...

NSMutableArray can't be added to

I've had this sort of problem before, and it didn't get a satisfactory answer. I have a viewcontroller with a property called "counties" that is an NSMutableArray. I'm going to drill down a navigation screen to a view that is about selecting the counties for a geographical search. So the search page drills down to the "select counties"...

Objective-C-Runtime Bug When Naming a Superclass "Message"

I have the following class hierachy: @interface Message : NSObject {} @end @implementation Message - (void) dealloc { // I won't be called [super dealloc]; } @end @interface FooMessage : Message {} @end @implementation FooMessage - (void) dealloc { // should call Message - dealloc [super dealloc]; } @end And the fol...

Why Won't this http post request work? Delegate methods not being called

Hi, I'm wondering why this http post request won't work for my iphone app. I know for a fact that the url is correct and that the variables I'm sending are correct but for some reason the request is not being recieved by the aspx page. EDIT:: I re factored the code into its own class with its own delegate methods. The delegate method...

UIScrollView custum paging distance

Hey! I have a UIImage (Image's width is > 320px) in a UIScrolView (covers full width of screen) and want a paging effect. All the tutorials/examples I found explain how to do it with multiple UIImages or UIVIews, but I only have 1 UIImage in the UIScrollView. My aim is it to create a 'tape measure' like effect. and the scrollview shou...

UiPickerView change font color according data

I'm using a pickerView with multiple components related to several fields in a Database (CoreData). Is it possible to change the fontcolor for a specific component according the presence of data in the DB ? For example the field in the DB is null the component font color should be RED otherwise black. Any help will be appreciated ! Dar...

Using Badge Subview of TabBarItem Elsewhere

Since Apple doesn't seem to provide a public means of creating notification badges wherever you like, I was wondering if it was; A) Possible to reference the subview of a tabbar/tabbaritem that is the badge indicator? B) If so, is it kosher to use/duplicate this view for use within my own view? ...

An NSMutableArray that doesn't retain?

A few UIViewControllers in my app that need to register with a "provider" class in their viewDidLoad methods. I've just been adding them to an NSMutableArray contained in the provider class. However, I don't want this NSMutableArray to keep them from being dealloc'ed, and I also want to have them remove themselves from the NSMutableArr...

Multiple MPMoviePlayerViewController fullscreen movie init & switching issue - Fullscreen View doesn't autorotate and minor similar issues

Hello SO Friends, This is my first post at SO. I would like to thank all of the SO users, their contribution have helped me a lot in all of my projects. I am new to the iPhone Application development scene. Aim of the project is to have a custom interactive User Interface (UI) on top of Movie Player objects (*.mov files on device). Th...

Navigation (controller) in Tabbar (c) in Navigation (c) (iphone)

I want to have a TabBar controller inside a navigation controller. So that when an item is selected on the first Navigation Controller it pushes the TabBar into view. Inside this tabbar on the first tab is another navigation controller. However I only want one navigation bar. I've come up with 2 ways but not sure which way is better (I...

How to handle an array of pointers in Objective-C

I figured out the answer to this question, but I couldn't find the solution on here, so posting it for posterity. So, in Objective-C, how do you create an object out of a pointer in order to store it in objective-c collections (NSArray, NSDictionary, NSSet, etc) without reverting to regular C? ...

Write to XCode build transcript.

Is there any way to write to the XCode build transcript? What i want to do, is throw a warning if a device is not attached to the computer instead of an assertion failure in my unit test cases (some cases rely on an attached ipod). I thought of something like the standard compiler warnings (only with custom message). Thanks. ...

Basic C++ class how to implement with Objective C

Hello everyone! I have some problems with implementing class which written in C++, because I not familiar with c++ .. if someone could help with implementing it in Objective C #ifndef ENTITY_H #define ENTITY_H class BaseGameEntity { private: int m_ID; static int m_iNextValidID; void SetID(int val); public: BaseGa...

NSWindowController and isWindowLoaded

Hi, I have an NSWindowController and I initialize it like this; + (MyWindowController *) sharedController { static MyWindowController *singleton = nil; if (!singleton) singleton = [[self alloc] initWithWindowNibName: @"myWindow"]; return singleton; } and I show windows like this; [[MyWindowController sharedController] s...

nsstring - out of scope

-(void)loadWebAdress:(NSString*)textAdress { [UIApplication sharedApplication].networkActivityIndicatorVisible = YES; adressurl=[NSString stringWithFormat:@"http://%@", textAdress]; NSURL *url=[NSURL URLWithString:adressurl]; NSURLRequest *requestObj=[NSURLRequest requestWithURL:url]; [webview loadRequest:requestObj]...

Newbie Objective C developer question

I have been looking everywhere for an answer to this question - perhaps I'm looking in the wrong places. Also, I'm brand new to Objective C although I have around 10 years of experience as a developer. for this code: [receiver makeGroup:group, memberOne, memberTwo, memberThree]; what would the method definition look like? - (void)m...

MVC as used in ObjectiveC programming.

I'm confused somewhat by the MVC implementation as used in Objective C programming. What is described as 'Controller' in Objective C tutorials and documentation, I understand as simply a view or mediator. Which is correct? ...

UIView Controller mysteriously getting deallocated

I have a UINavigation scheme with a "welcome" page, a middle page, and a detail page. In the middle page, there's a segmented controller that can swap the main body of that page between a table, a calendar, and a MKMapView, each implemented with their own view controller classes. Today I implemented the MapView and its annotations and ...