When the user check more than one (checkbox) option which are then combine into a string of "apple,orange,pear"
SELECT id, pos, FROM $db WHERE dtime>='$now' AND jsub IN ('$arr[1]') ;
When I pass the string to $arr[1], it won't work correctly, how do I split into array and get mysql IN function to process correctly?
How can I get the number of times an NSString (for example, @"cake") appears in a larger NSString (for example, @"Cheesecake, apple cake, and cherry pie")?
I need to do this on a lot of strings, so whatever method I use would need to be relatively fast.
Thanks!
I am using the Mac OS X Apple Script Editor and (while debugging) instead of writing a lot of display dialog statements, I'd like to write the results of some calculation in the window below, called "Result" (I have the German UI here, so the translation is a guess). So is there a write/print statement that I can use for putting messages in the "standard out" window? I am not asking to put the messages in a logfile on the file system, it is purely temporary.
Hi,
I've seen in (Apple) sample code two types of ways of allocation memory, and am not sure I understand the difference and resulting behavior.
// FAILS
NSMutableArray *anArray = [NSMutableArray array];
[anArray release];
// WORKS
NSMutableArray *anArray1 = [[NSMutableArray alloc] init];
[anArray release];
By "FAILS" I mean I get crashes/runtime warnings etc., and not always as soon as I call the release...
Any explanation appreciated.
Thanks
After being convinced ("schooled") that Swing apps on Mac do look native, I'm trying to make mine look as native as possible. Everything looks great, but when I hit command-Q or do it from the menu, my windowStateChanged(WindowEvent e) is not firing on my main JFrame (if I exit in any other way, it does fire). How can I respond to the real Apple quit?
Instead of calculating the month and leap year to do this calculation. Is there any way to check using some Apple Internal APIs to do so?
I found that the Java have something like this:
calendar.getActualMaximum(calendar.DAY_OF_MONTH)
Is there any similar thing for Objective C? thz u.
Hi,
I've just read Apple's docu of NSScanner.
I'm trying to get the integer of that string: @"user logged (3 attempts)".
I can't find any example, how to scan within parentheses. Any ideas?
Here's the code:
NSString *logString = @"user logged (3 attempts)";
NSScanner *aScanner = [NSScanner scannerWithString:logString];
[aScanner scanInteger:anInteger];
NSLog(@"Attempts: %i", anInteger);
Regrads,
Ruby
Hello everybody,
Does anyone idea about how can create UItextivew like same as below so user can easily write text in proper format.
please check this link
https://devforums.apple.com/message/217857#217857
is this possible, i have no idea about this.
please anyone have idea above of the issue.
Thanks you,
Hi all
I am showing contacts list in my iphone application. When user taps a contact number then call starts.
But when call is completed then iPhone exits from My Application and switches to the Apple iPhone contacts application.
Please suggest me any idea on how to return back to My Application after completing the call..
Thanks
Deepika
Suppose I have a column with words:
orange
grape
orange
orange
apple
orange
grape
banana
How do I execute a query to get the top 10 words, as well as their count?
Hello,
I am generating a hash from a NSString, using [myString hash] and the result I get is a negative value.
The Apple's documentation is saying :
(NSUInteger)hash
Return Value An unsigned integer that
can be used as
Any idea ?
Thanks
Are you an iPhone developer using tools other than Objective-C for your coding (i.e. Phonegap, Unity3d, Monotouch, Corona or Titanium, etc?)
Have you heard of or read section 3.3.1?
If you are concerned vote on the petition at [solicitation removed - see history]
Join the facebook group 'Article 3.3.1' and have your say: [solicitation removed - see history]
And most importantly contact apple through their web portal and ask for clarification
I want to create a XML file in csharp like the below format pls help me with the code
<MasterEntries>
<fruit>Apple</fruit>
<animal>Fox</animal>
<color>Violet</color>
</MasterEntries>
I am new to iPhone development. I just registered with Apple for the iPhone Developer Program. When I try to build, I am receiving an error:
Code Sign error: a valid provisioning profile matching the application’s identifier could not be found
I'm not sure what is wrong. I tried browsing the Internet but I get confused. Can anyone help me with what I should do?
http://itunes.apple.com/us/app/bistromath/id309214622?mt=8
Number pad in second screenshot:
So is this some customization of the stock keypad? Modal view?
Hi,
I've read apple's Objective-C doc and am curious about using @synthesize. I've seen classes with a long list of @synthesizes and I've seen classes with one @synthesize then a long comma-separated list of ivars. So what's the difference between:
@synthesize ivar1;
@synthesize ivar2;
@synthesize ivar3;
and
@synthesize ivar1, ivar2, ivar3;
????
Let's say in Apple API version 1.0, there is a class NSFoo with a property 'color'. API 1.1 adds property 'size'.
I want to know whether I can use the getter: myFoo.size
[myFoo respondsToSelector:@selector(getSize)] doesn't work as expected.
What's the correct way to find out if an object has a property? Thanks!
Hi..
Ive tried to contact Apple about this, but they refuse to give me any answers. Do any of you know if it`s allowed to make the user register with a username,password and phone number before they can use the the application they have already downloaded from app store?
Thanks!
Hi there,
Using the latest SDK from Apple, I noticed that while running on the iPhone works fine, the iPad version of my application doesn't "accept clicks" on any view/widget that is outside the "bounds" of the standard iPhone screen.
Any idea?
Thanks,
Reuven
I am looking for how to style a label in a UITableView cell, so that it shows how many children/messages are in the next view controller.
This is used in Apple's Mail app, to show how many messages are in the inbox or account.
I am sure that this is a UILabel, but what font, color and how to make the oval around it?
Whenever I add a layer for Core Animation either from the nib or programatically, the NSTextFields (labels) in my interface get messed up. Here's a screenshot from Apple's BasicCocoaAnimations example. (Look at the text fields on the left, somehow they're drawn sharper than normal)
Note that if I add a layer in IB then it also gets messed up in IB itself before I even run my app.
Hello,
Apple has disabled the overflow CSS aspect in mobile Safari so it is not possible to scroll inside a fixed height div. This is quite annoying.
While making an iPhone native app, is it possible to access WebKit settings to turn that feature on ?
I'm building an autosuggest search, like apple's spotlight... and want to disable the browser from offering text suggestions under the input box. I can't remember if that's an html or css setting and can't find it.
Anyone remember?