Does anyone know how to convert a NSDictionary object into an NSData object as a plist without saving the dictionary first?
I would like my iphone app to send an email with a plist containing my dictionary attached. I am currently using skpsmtpmessage, http://code.google.com/p/skpsmtpmessage/, to send email.
Thanks in advance
...
I have an Application Delegate class with a enumeration which looks like this:
typedef enum {
Online = 3500,
DoNotDisturb = 9500,
Offline = 18500,
Away = 15500,
Busy = 6500,
BeRightBack = 12500
} status;
Additionally I have a property to set a value from the enumerator in my interface file:
@interface MyAppDel...
I want to declare a custom enum such as:
enum menuItemType
{
LinkInternal = 0,
LinkExternal = 1,
Image = 2,
Movie = 3,
MapQuery = 4
}
As a type for my object:
@interface MenuItem : NSObject {
NSMutableString *menuId;
NSMutableString *title;
enum menuItemType *menuType;
NSMutableArray *subMenuIt...
Hi,
I need that I can use 1 object of NSString to use in all other files
to access 1 variable in all filees
...
Hi There,
I am using the cocos2d-iphone + Box2d engine, I have a simple call in Box2d to create a body:
b2Body *crateBody = world->CreateBody(&crateBodyDef);
Then I am printing the newly incremented body count variable through:
CCLOG(@"There are %0.0f bodies in the world.", world->GetBodyCount());
However, GetBodyCount() always re...
I have a problem identical to this problem here.
I even want to encode the same infromation as him (it's a date/time for asp.net)...
When ever I try to add a backslash i get two backslashes since I used \.
Everyone in the thread above has claimed that this is a problem with NSLog and that NSString does tread \\ as a \. I have checked ...
I am developing for iPhone the app I am developing has many buttons and I want all buttons to call the same method but with different parameter
for example I want button1 to call the method mymethod with the parameter "foo"
and button2 should call the same method but with parameter "bar"
Thanks for help
...
I have a certificate .p12 and .crt and I would like store the public key to print it and use the key with an iPhone application. I have seen the iPhone's documentation, but I can't do it...
...
hi,
im working on a editable notebook type project. it consists some text and images at any time.
in UITextView if we add images as subview the frames are fixed. but i have editable option. so i must save image as NSString format in UITextView, but it should look image type in uipart. so please suggest me how can i handle this requier...
I am getting this warning:
warning: comparison between pointer
and integer
when doing the following:
if (menuItem.menuType == LinkExternal)
MenuType is a custom enum defined as below:
enum menuItemType
{
LinkInternal = 0,
LinkExternal = 1,
Image = 2,
Movie = 3,
MapQuery = 4
};
enum menuItemType *menuType;...
Given a file path how do i check that this file is owned by current user?
Currently i managed to get:
[[[NSFileManager defaultManager] attributesOfItemAtPath:filePath error:outError] fileOwnerAccountID];
Which return NSNumber*. But i can't seem to google for how to get current user account id to compare it with. Besides all this looks...
Hello guys!
Is there a way to discover other iPhones in the range of it's wireless area? So I give an example. I am staying at the airport. Somewhere near me there is also an iPhone. Me and the other iPhone's owner playing the same game. Is there a way to alert me and the other player that we are so close to eachother? Is this working a...
hi,
im developing a notebook based application. it consists of notes and images also.
im unable to find best way of coding to add images and text together. it is also editable, so im getting confused whether to take scroll-view or text view. is i taken scroll-view there is no editable option. if i take text view we can't change frames o...
My question is simple actually, how do I create an object to act as a delegate, instead of including the delegate methods in my view?
For example, I have x functionality that requires delegate methods, and they're currently setup to use self as the delegate. I'd like to put those methods in their own object so that the delegate methods ...
Quick question, are these the same?
self.sliderLabel = nil;
AND
[self setSliderLabel: nil];
gary
...
I'm having some difficulty determining what search solution to use in my new iPhone application. The data structure I have is a hierarchy plist that describes a table of contents that link to an HTML file stored locally. I only have two levels in the TOC (Chapter and Section) so it nicely fits into a UITableView with headers and cells. T...
Anyone knows how can I create a movie player component the same way UStream has created it's own?
(Is a custom component that doesn't need to go to the iPhone's Fullscreen component)
Thanks
...
I have an NSImage and want to replace one color in it with another (e.g. replace all the blue with a green colour) Is there an easy way to do this and if not, how could I get this functionality?
...
I would like to know if Iphone OS supports SSLv3 network communications ?
Are there any tutorial or how to on the web ? I didn't find anything about this!
Which framework/library should I use ?
Thanks
...
hi
plz tell me what to do in this type of error???
i have:
NSString *a = @" b ="1.0" "
...