save substring from a string in Objective-C [closed] - objective-c

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
i am having a string like: funcname("data"),comes from upstairs.now i want to save the funcname, data in two NSString variables i.e i need to find the string present in between "" and the string before'('.

There's a very useful class NSScanner that will help you to parse different tokens easily.

Related

Passing an integer to a method [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am trying to pass a simple integer of type int to a void method which looks like this:
-(void)deleteGroup{
I know I should do something like:
[self deleteGroup withInt: 3];
But I can't seem to figure out the correct solution
You need to change
-(void)deleteGroupWithInteger:(NSInteger)intValue{
Then use
[self deleteGroupWithInteger:3];

How do you set a textfields text? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I was wondering how do you set a textfields text in XCode Objective - C.
[myTextField setStringValue: #"a string or an NSString object"];

In Obj-c/iOS would it be best to store seconds as an int or a NSNumber? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
In Obj-c/iOS would it be best to store seconds as an int or a NSNumber? unfortunately I'm not able to use NSTime, as I'm storing it on a server, and they don't do NSTime.
Thanks for any advice.
I don't think it really matters so for simplicity I'd say an int just because it doesn't need to be initialized.

How hide/show all paragraphs with a certain text-style? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm trying to find a way with VBA to hide/show a certain text-style.
What's the best way to make a sub like this in VBA?
I'm going to add the code to a "Hide/show" button.
ThisDocument.Styles("StyleToToggle").Font.Hidden = Not ThisDocument.Styles("StyleToToggle").Font.Hidden

Objective-C - How to send a multiple parts message? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Here's more explanation.
- (NSArray *)shipsAtPoint:(CGPoint)bomblocation withDamage:(BOOL)damaged;
How to send that?
You'll want to read The Objective-C Programming Language, which you'll find in the Xcode docs.
[objectIWantToSendTheMessageTo shipsAtPont:somePoint withDamage:YES];