I'm having trouble understanding the API to set up a l2cap (or RFCOMM) client/server running on OSX like I can with BlueZ on Linux.
On Linux, I simply open a socket, bind, listen & then accept for the server, & socket, bind, connect for the client (w/ the bind taking in the BT address of the device I want to use). Also, there's no pair...
I have a solid idea how GCD works, but I want to know more about the touted "operating system management" internals. It seems almost every technical explanation of how Grand Central Dispatch works with the "Operating System" is totally different. I'll paraphrase some of my findings.
"It's a daemon that's global to the OS
that dis...
Hi, How do I call a .net web service from an Objective C iPhone app?
...
Hi, I;ve involved myself so much in NavigationControllers that I've become kinda ignorant with other options.
Heres what i want to accomplish, I've built Subclassed ViewControllers to Push via NavigationController that works pretty fine.
However, to avoid the Idea of going back and getting to a new view doesnt fit for quick access s...
I have a label in a custom cell with 3 labels in a table view. I am trying to display a text message "Updated status one of user" in one of the labels, but it displays only "Updated status" and truncates the rest of the message. What can I tweek to display the whole message in a line or spill it to a second line is necessary? Appreciate ...
Is there any function to remove the white spaces from text message in objective c?
For eg:for "How are you",the result should be "howareyou"
Thanks in advance.
...
The header views in my plain style table view currently scrolls with the content. Is there a way to stop the header views from scrolling and stay in place at the top of the table?
Any help would be appreciated please.
...
I searched a bit, but couldn't find an answer to this (probably very simple) question.
I have an NSString, and I'd like to check if it contains a word. Something like this:
NSString *sentence = @"The quick brown fox";
NSString *word = @"quack";
if ([sentence containsWord:word]) {
NSLog(@"Yes it does contain that word");
}
Thanks.
...
Hello,
I'm learning Objective-C and using GNUStep, but when i try to execute my very simple Hello World application, just to test, it doesn't printed nothing. My code is like this:
// main.m
#include <stdio.h>
int main(void)
{
printf("Hello, World\n");
}
Here is the GNUmakefile:
GNUSTEP_MAKEFILES = /GNUstep/System/Library/Makef...
How do I access an object that was created in another class. I have one class that constructs a web query goes online and pulls the data back. This results in an object that has all of the information I need. I want to be able to get the state of various variables in that object. The object probably won't change after creation
...
So, I am trying to search an nsstring for a term us rangeFromString, but whenever there is not anything matching that result, I get something along the lines of 2748601949 as opposed to 0. I am trying to, for example, locate @"sin(",@"cos(", and @"tan(" in a string like @"1+sin(28)+cos(72)". Thank you
...
if you tell an objective c object to removeObservers: for a key path and that key path has not been registered, it cracks the sads. like -
'Cannot remove an observer for the key path "theKeyPath" from because it is not registered as an observer.'
is there a way to determine if an object has a registered observer, so i can do this
if...
Hello,
I'm beginning in Objective-C development and as i can see in the development blogs(about Objective-C) all they use Mac and some use Linux, but why we don't have many Objective-C developers on Windows, since Objective-C is a very good and easy language?
...
Hello folks,
I was reading how to implement private methods in Objective-C (Best way to define private methods for a class in Objective-C) and a question popped up in my mind:
How do you manage to implement protected methods, i.e. private methods that are visible to subclasses?
Suppose I have a MySuperClass with a Category containing ...
Hi Fellow iPhone Developers,
I am an experienced software engineer but new to the iPhone platform. I have successfully implemented sub-classed view controllers and can push and pop parent/child views on the view controller stack. However, I have struck trouble while trying to update a view controller when an object is edited in a child ...
Hi
I have been through the Apple Developer guides and tutorials and I been through 2 iPhone books brushing on the subject of Core Data.
I am used to handling the "value object"/"entity" side of things and then send them of to a web service or the likes. But on the iPhone I get to handle everything myself… cruel world:)
The Locations, T...
I'm having problems with simple NSPredicates and regular expressions:
NSString *mystring = @"file://questions/123456789/desc-text-here";
NSString *regex = @"file://questions+";
NSPredicate *regextest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", regex];
BOOL isMatch = [regextest evaluateWithObject:mystring];
In the above exa...
Why is this happening:
As you can see, in the "Allowed Toolbar Items" the image looks fine for the "PHP" toolbar item, and when its actually in the toolbar, it scales weirdly.
Thanks
...
I am trying to floss daily, get my exercise, and make sure I maintain a balance between my retains and releases.
Here is what has me puzzled. I have a ivar:
NSMutabledata *_alignmentData
and a synthesized property associated with it:
// .h file
@property (nonatomic, retain) NSMutableData *alignmentData;
// .m file
@synthesize align...
I am noticing an error with the 'bog standard' Objective-C folder detection code. I am scanning files and folders with a given path and keeping count of how many files exist and how many folders exist.
Oddly enough, I am returning a count of one more folder than actually exists!
Stepping through the routine with debug and watching eac...