Hello,
Does anyone know what does the following error mean:
+entityForName: could not locate an NSManagedObjectModel for entity name 'TAB_RSS'
I noticed my frameworks were highlighted in red UIKIT.framework, Foundation.framework and CoreGraphics.framework. I've now added these but am getting a warning message stating "missing required...
When commenting out a piece of code in xcode
//code
If you click comment again it adds more comments
////code
does anyone know how to prevent this?
...
I've written code to restore the state of my app, but there's a memory leak in the NSMutableArray. I'm new to Xcode so I apologize if this is something trivial I have overlooked. Any help is appreciated.
lq
AppDelegate.m
- (void)applicationDidFinishLaunching:(UIApplication *)application {
[rootViewController restoreState];
}
RootV...
Hello,
I'm can't find the project.pbxproj file. Can anyone tell me where this is located.
Regards,
Stephen
...
Hi;
I'm using -setNeedsDisplayinRect to update only a part of my UIView. However, all of my drawing done previously to calling this method is erased.
Here is my code in the UIView subclass:
-(void)drawRect:(CGRect)rect{
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetRGBFillColor(context, r, g, b, 1);
...
Using Instruments on the device it detects a 3.50 KB memory leak using Apple's Reachability 2.0 code in my app. The Leaked Object is GeneralBlock-3584. The leaks tool points to the following code:
- (BOOL) startNotifer
{
BOOL retVal = NO;
SCNetworkReachabilityContext context = {0, self, NULL, NULL, NULL};
if(SCNetworkReac...
I'm using addTimeInterval for creating local notification but it seems that it is now deprecated (iOS 4).
My code:
localNotif.fireDate = [now addTimeInterval:timeInterval];
Xcode's warning:
'addTimeInterval:' is deprecated (declared at /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk/System/Library/Frameworks/Fo...
I'm writing an objective C program which will need to be applescriptable. so, I need to create and edit an SDF file. I'd MUCH rather not have to write XML if I don't have to, so I'm hoping that someone can point me to a good editor... I've found SDEF EDitor but I'd like a couple of options to play around with...
Surprisingly, the apple...
I'm looking for the best way to store per-Build configuration information for an iPhone app. In my iPhone app there are several url's and storage location settings that are specific to a particular build (DEBUG RELEASE etc)
Currently i have three recipients for my app, QA/Test, myself and the customer, each has specific settings for th...
I have a lot of data stored in my app on my provisioned device, and I want to do additional testing on my computer which is much faster than using the device. What is the best way to transfer the data store into the iPhone simulator so I can access it on the computer?
...
Is it possible to use Xcode using iPhone 3.1.3 SDK to compile a standard C program that will work on the iphone? I'm trying to use xcode to compile a basic 'hello world' but to no avail. Do I need to obtain an additional application template or am I just missing something?
...
I had the following code that takes in 14 mb or more of image data encoded in base4 string and converts them to jpeg before writing to a file in iphone. It crashes my program giving the following error :
Program received signal: “0”.
warning: check_safe_call: could not restore current frame
I tweak my program and it can process a few m...
I am trying to display some decimals in a scientific style. I'm using NSDecimalNumber and NSNumberFormatter objects. When setting the minimum and maximum number of digits though, some information from the original number seems to be lost. For example, consider the following code example:
NSDecimalNumber *dn = [NSDecimalNumber decimal...
thanks to zoul for sharing his openal avaudioplayer alternative!! its exactly what i needed,
heres my problem.. i cant build a distribution build w/o getting
general gcc-4.2 failed with error code 1,
i built my code within the finch demo project and figured it might be
something i did.
so i re-downloaded demo... duplicated release, r...
Hi,
I got this error just one time (non-repeatable) while running my Objective-C & C++ program with the Xcode debugger:
Program received signal: “EXC_BAD_ACCESS”.
Xcode could not locate source file: sweep.c (line: 1026)
kill
quit
I don't have any references to any "sweep.c" in my code, so I'm thinking maybe it's a Xcode/GDB error. A...
Possible Duplicate:
How to cross compile from Mac OS X to Linux x86?
I have an application that I wrote in C++/SDL, using FMOD library. The app is portable and compiles without any code change on Mac and on Linux. But one annoyance is that when I want to ship Linux version, I have to run my Linux box, copy the source code over...
Hi,
I frequently connect and disconnect my laptop from a secondary display. Additionally I work in a small group that uses svn to manage xib files. It seems that if you drag a UIView display into a secondary display in interface builder and save the xib then either disconnect that display or open it on a computer with a secondary displ...
I have a simpe window based application that loads a series of images on launch.
Only one nib(MainWindow.xib) with a UIView and UIToolbar.
It WAS working, both in the simulator and external device.
I had some SDK issues for a while(I had removed needed SDK's) but it is now compiling again without errors and I see the launch image corr...
I'm having a bit of a problem trying to get touchesBegan to respond to multi touch.
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
NSSet *allTouches = [event allTouches];
for (UITouch *touch in allTouches)
{
CGPoint location = [touch locationInView:touch.view];
if(CGRectContainsPoint(snare.frame, location) && l...
I have set up my data model in xcode like so
EntityA
AttA1
AttA2
EntityB
AttB1
AttB2
AttB3
I then set up the relationships
EntityA
Name: rlpToEntityB
Destination: EntityB
Inverse: rlpToEntityA
To Many: Checked
EntityB
Name: rlpToEntityA
Destination: EntityA
Inverse: rlpToEntityB
To Many: UnChecked
i.e. relationship...