UnKnown Error
Jacob Relkin
iphone objective-c 2014-1-28 0:59:19
I have this inside a class[delegate performSelector:@selector(doStuff:) withObject:myObject afterDelay:2.0];and I am having this errorwarning:’-performSelector:withObject:afterDelay:’not found in protocol(s)I cannot figure out what may be wrong.any clues?thanks.
Necro
iphone objective-c ios xcode 2014-1-28 0:57:16
i got a report from my analyser that this function could potentially be leaking. Can anyone shed any light as to why?- (NSString *)encodeString:(NSString *)string {NSString *newString = NSMakeCollectable([(NSString *)CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, (CFStringRef)string, NULL, CFSTR(“:/?#[]@!$ &'()*+,;=\”<>%{}|\\^~`”), CFStringConvertNSStringEncodingToEncoding(NSUTF8StringEncoding)) autorelease]);return newString;}
zoul
iphone objective-c ios syntax 2014-1-27 23:49:47
Setup:@interface Base : NSObject {} @end@interface Subclass : Base {} @end.Subclass* sub = .;Is there a difference between:// No explicit cast. Base* base = sub;and:// Explicit cast, but does this actually DO anything different at runtime? Base* base = (Base*) sub;
fuzzygoat
iphone objective-c cocoa-touch 2014-1-27 23:34:58
Super quick question, my initial thought was this is not going to work, but then I thought why not give it a go. Now I am thinking it won’t work as the resultant array does not seem to be properly formed? My question, should this work?NSUInteger numPoints = [[[self dataModel] locationFake] count]; CLLocationCoordinate2D points[numPoints];
CoDEFRo
iphone objective-c ios cocoa-touch delegates 2014-1-27 22:53:51
I’m trying to implement a delegate by implementing it within another classes interface file as follows:ImageScrollView.h#import <UIKit/UIKit.h>@protocol ImageScrollViewDelegate <NSObject>- (void)scrollViewDidScroll:(UIScrollView *)scrollView; – (void)scrollViewDidZoom:(UIScrollView *)scrollView;@end@interface ImageScrollView : UIScrollView <UIScrollViewDelegate> {id <ImageScrollViewDelegate> _imageScrollViewDelegate; }@property(nonatomic, assign) id <ImageScrollViewDel
Nikolai Ruhe
JibblesMcGee
iphone objective-c 2014-1-27 22:02:11
Good morning, stackoverflow folks.I’m having a small problem, and I can’t find a solid answer via google, stackoverflow, or from the Apple documentation. Perhaps I am not searching for the right keywords. Anywho, on with my simple, stupid question(s):I’m currently developing a universal app. I’d like for the iOS Deployment Target to be set for 3.2+ for the iPad, and 4.0+ for iPhone/iPod Touch, yet there is only one field for the setting. Should I be setting this value to 3.2 or 4.0? Isn’t 3.2 an
Valentin Radu
iphone objective-c ipad osx 2014-1-27 21:07:57
Let’s say I have 2 instances of Person class. One named john and one mary. The Person class has 2 properties age and gender. Is there a way to make an iteration thorough all the instances’ properties and check if the current property is equal to a given property? Something like this:for (iterate thorough all properties of instance mary) { //first iteration @selector(mary.age)==@selector(john.age) //this would be YES;//second iteration @selector(mary.gender)==@selector(john.age) //this would be N
dontWatchMyProfile
iphone objective-c 2014-1-27 20:58:38
For some reason the compiler gives me a warning that my category methods may not be there (like “foobar may not respond to doFoo”). However, the category works.
jimmym715
iphone ios power-management 2014-1-27 19:53:27
I would like to know if my app is running with an external power cable attached. Is it possible to find out this state at runtime? An extra question: would this be able to differentiate between true USB power and those external “battery packs”?Thank you!
Quinn Taylor
Ted Wong
objective-c nsstring 2014-1-28 1:52:13
I declare the object variable as a NSString But when I use the XCode to look into my object, I saw there are two type of String, it seems that the system automatically transfer to another:What are the different between them? Are they interchangeable to one and others. Also, what is the condition two change to another? Thanks.
CodaFi
objective-c debugging 2014-1-28 1:18:38
I would like to know why it’s happening, sometime in my domino game, at time to put domino at table this error is showed, sorry for my bad english. I’m looking for someting that help me to solve this, is only thing that i need to publish my app.
catlan
objective-c ios osx cocoa-touch cocoa 2014-1-28 1:17:35
I looking for code to convert a MacBinaryIII encode file on iOS and Mac OS X. The only two I could find are Christopher Evans MacBinaryIII and Sean Hummels MacBinaryIII OSAX 1.0.1 which both use API that are not available on iOS or the 64-bit Mac OS X Obj-C runtime.
Jacob Relkin
iphone objective-c 2014-1-28 0:59:19
I have this inside a class[delegate performSelector:@selector(doStuff:) withObject:myObject afterDelay:2.0];and I am having this errorwarning:’-performSelector:withObject:afterDelay:’not found in protocol(s)I cannot figure out what may be wrong.any clues?thanks.
Necro
iphone objective-c ios xcode 2014-1-28 0:57:16
i got a report from my analyser that this function could potentially be leaking. Can anyone shed any light as to why?- (NSString *)encodeString:(NSString *)string {NSString *newString = NSMakeCollectable([(NSString *)CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, (CFStringRef)string, NULL, CFSTR(“:/?#[]@!$ &'()*+,;=\”<>%{}|\\^~`”), CFStringConvertNSStringEncodingToEncoding(NSUTF8StringEncoding)) autorelease]);return newString;}
zoul
iphone objective-c ios syntax 2014-1-27 23:49:47
Setup:@interface Base : NSObject {} @end@interface Subclass : Base {} @end.Subclass* sub = .;Is there a difference between:// No explicit cast. Base* base = sub;and:// Explicit cast, but does this actually DO anything different at runtime? Base* base = (Base*) sub;
fuzzygoat
iphone objective-c cocoa-touch 2014-1-27 23:34:58
Super quick question, my initial thought was this is not going to work, but then I thought why not give it a go. Now I am thinking it won’t work as the resultant array does not seem to be properly formed? My question, should this work?NSUInteger numPoints = [[[self dataModel] locationFake] count]; CLLocationCoordinate2D points[numPoints];
Alexander Karaberov
ios objective-c cocoa-touch uiviewcontroller 2014-1-27 23:12:44
How can I get all the ViewControllers of my application at runtime? As far as I know self.navigationcontroller.viewControllers returns the NSArray of only those controllers which are on the navigation stack. But is there some way I can access all the my application’s ViewControllers?
CoDEFRo
iphone objective-c ios cocoa-touch delegates 2014-1-27 22:53:51
I’m trying to implement a delegate by implementing it within another classes interface file as follows:ImageScrollView.h#import <UIKit/UIKit.h>@protocol ImageScrollViewDelegate <NSObject>- (void)scrollViewDidScroll:(UIScrollView *)scrollView; – (void)scrollViewDidZoom:(UIScrollView *)scrollView;@end@interface ImageScrollView : UIScrollView <UIScrollViewDelegate> {id <ImageScrollViewDelegate> _imageScrollViewDelegate; }@property(nonatomic, assign) id <ImageScrollViewDel
ratsimihah
c++ eclipse memory memory-management gdb 2014-1-27 8:10:58
I’m trying to read the location of a variable in memory at runtime, using gdb within Eclipse, but can’t really see which one is the correct address. Here is the output of gdb when I disassembly my program:main(): 0000000000400634: push %rbp 0000000000400635: mov %rsp,%rbp5 int i = 7; 0000000000400638: movl $0x7,-0x4(%rbp)6 int j = 8; 000000000040063f: movl $0x8,-0x8(%rbp)8 return 0; 0000000000400646: mov $0x0,%eax9 }and
Levon
c gdb errno 2014-1-27 2:03:07
I am looking at the following code in an SO “Low Quality” post to make sure the sample works, and my question is why can’t I print errno’s value?#include <stdio.h> #include <stdlib.h> #include <errno.h>int main(){FILE *fp;errno = 0;fp=fopen(“Not_exist.txt”,”r”);if(fp == NULL && errno == ENOENT)perror(“file not exist”);return 0; }Here is what happens when I try to print the value:(gdb) p errno Cannot find thread-local variables on this target (gdb)I can print fp’s value
Tim
memory debugging gdb 2014-1-25 20:17:53
I am learning to solve some runtime error with gdb. Here are my questions:when runtime error happens because some access operations of some memory is conflicted, can I find out in the dumped core the address of that memory? Given an address, is it possible to find out which variable is using it (the address may be at the begining, end or middle of the memory of the variable)? Given the memory used by a variable, is it possible to find out its nearby variables down below and right above it?Thank
jemmons
objective-c xcode cocoa gdb 2014-1-25 10:44:21
Often when debugging, it’s important for me to know what methods of a class are being called in what order. The naive solution (that I’ve been using thus far) is to pop an NSLog at the top of each method. But this is time consuming, repetitive, ugly, and makes my code look juvenile if I forget to remove the logs after debugging.A cleaner solution is to set breakpoints on each of my methods, configure their actions to issue the debugger command: po NSStringFromSelector(_cmd) and set them to autom
sarnold
gdb linux-kernel kvm 2014-1-24 11:03:10
I am trying to debug Linux kernel with kvm vm. I am getting an error message “Remote ‘g’ packet reply is too long”. My host is 64-bit and so is my vm.My steps:Start the VM with custom -kernel, -initrd and -append options. Start gdb Execute “set architecture i386:x86-64:intel” Execute “add-symbol-file linux-3.0/vmlinux” Execute “show arch” to verify its still “i386:x86-64:intel” Execute “target remote localhost:1234” Execute “continue” Press Ctrl+C, I get the above message.Has anyone faced this p
Patrick
gdb disassembling 2014-1-22 19:50:44
I’m trying to disassemble a program to see a syscall assembly instruction (the INT instruction, I believe) and the handler with GDB and have written a little program (see below) for it that opens and closes a file. I was able to follow the call to fopen with GDB until it executed a call. When I tried to tell GDB “disassemble 0x….” (address of call) it responded with ‘No function contains specified address.’ Is it possible to force GDB to disassemble (or display it in assembler as good as possi
duskwuff
c debugging gdb 2014-1-22 4:22:30
When using GDB (using text interface, TTY, and SSH on Gentoo Linux) for debugging C code, I want to print the data in objects. When I try using print-object <objectname>, I get the messageevaluation of this expression requires the program to have a function “_NSPrintForDebugger”I can’t find any documentation or examples (is it me, or is Linux documentation very short on examples?) of how to create such a function. I would like an example(s) of NSPrintForDebugger functions for gdb that I ca
Chan Le
c++ eclipse gdb 2014-1-20 20:15:35
my code:#include <iostream> using namespace std; int main() {int n=5;int a[n][n];a[1][1]=5;return 0; }I got this error when trying to watch the expression a[1][1] in eclipse on line 6:Failed to execute MI command:-data-evaluate-expression a[1][1] Error message from debugger back end:Cannot perform pointer math onincomplete types, try casting to aknown type, or void *.i guess it’s returned from gdb? however, i don’t know why i can’t watch that value? Isn’t “a” is a normal multi-dimensional
jyzuz
linux debugging gdb x86 2014-1-19 22:33:23
I want to add some extra funcionality to /bin/ls. So I started it on gdb and added a breakpoint at the beginning.Now question is: how can I change the code of a running program in memory? I can see the assembly code, but I’m not able to modify. How can I do it?On Windows I can easily do this with olldbg for example. How about on Linux?(I know that doing this I will only change the code of the process in memory. So then I can dump memory to a file, and then I’ll have my changes saved in a binary
Alexander Gladysh
debugging ubuntu gdb pthreads 2014-1-19 16:54:28
When I run GDB against a program which loads a .so which is linked to pthreads, GDB reports error “Cannot find new threads: generic error”.Note that executable that I run is not linked with pthreads.Any clues?$ gdb –args lua -lluarocks.require GNU gdb (GDB) 7.0-ubuntu Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type “show cop
starblue
assembly embedded arm 2014-1-27 23:09:38
I would like my son to learn ARM assembler, and I’m considering buying him an embedded system that he can program so he can make LEDs flash and other cool stuff that I got a kick out of as a kid. Are there any emulated or virtual “workbenches” that offer this type of programming environment on the PC without using actual hardware? I’m keen to get him started with ARM as these chips seem to be in all the new devices such as phones etc.
ZEN.Kamath
arm microcontroller pic 2014-1-26 4:06:30
Are there any soft debuggers for microcontrollers (say PIC24) something like GDB. My platform doesn’t run Linux so can’t use GDB. More than a debugger I need to log data, something like what CCP does. I have a PICKit2 but it does not support runtime watch window update, only on breakpoints my watch variables be updated.Has anyone tried using MODBUS RTU for runtime data logging ?
pksorensen
c++ arm windows-phone-8 2014-1-25 23:20:57
I have a library in c++ and for the time being there are a bug in CMAKE / or missing feature for using the Visual Studio Arm Generator.What other options do i have to compile the library for ARM such i can use it in my c++ runtime components for windows 8 phone projects. I would like to build the library and then link against it from the Runtime Component.
Divuneh
arm lpc 2014-1-25 18:26:37
there is a hex file from a C project. I want to download this hex file on LPC1768’s flash with some raw data which I use it in the code on runtime ( for initializing data in the code ). I know when I write it on the board, in the run time, LPC1768 copies data from flash on the memory.problem 1: how to download raw data with hex file, with jflash?problem 2: how can I find where the raw data copied on the memory, to use it in the runtime?
MAYURESH MANJREKAR
c struct initialization arm 2014-1-23 21:40:54
I am writing a code in C for STM32 using CodeSourcery GCC 4.5.2 for ARM. I am facing problems in initialization of a global structure. The code is given below. In struct.htypedef struct {int foo;…int bar; } mystruct;extern mystruct example; In struct.cmystruct example = {100,200 …, 1000};In Main.c#include “struct.h”int temp; temp = example.foo;The code compiles without any problems. But while debugging, I find that the structure has been initialized with all garbage values!! The value of tem
Tim
android gcc arm android-3.0 transformer 2014-1-22 19:09:30
I just got a EEE pad transformer. Like any hardware I own I’d like to have a C compiler on it. I know I can cross compile, but I’d like to do development ON the device itself. I’ve searched google and all I can seem to find are pages on how to build an arm toolchain for x86/64 Linux. Thoughts?
user2607529
memory assembly arm raspberry-pi 2014-1-22 0:22:48
I wrote some very simple code, aimed to work on bare metal RaspberryPi. My code consists of gpio.s (with function “flash”, which turns LED on and off) and main.s, shown below..section .init .globl _start _start:mov sp, $0x8000b main .section .text .globl main main:ldr r5, =variableldr r4, [r5]cmp r4, $100bleq flash loop:b loop .section .data .align 4 .globl variable variable: .word 100So r4 should be filled with 100 => condition flag should be eq => LED should flash! But it does not. Why? Apar
Jav_Rock
c++ optimization arm 2014-1-20 3:02:04
I have been developing C++ code for augmented reality on ARM devices and optimization of the code is very important in order to keep a good frame rate. In order to rise efficiency to the maximum level I think it is important to gather general tips that make life easier for compilers and reduce the number of cicles of the program. Any suggestion is welcomed.1- Avoid high-cost instructions: division, square root, sin, cosUse logical shifts to divide or multiply by 2. Multiply by the inverse when
zserge
arm go x86-64 2014-1-19 7:00:47
I’m a big fan of Go language, and now I am trying to explore other architectures than x86/amd64. I build Go for ARM, and it seems to have good support for that target. All libraries build successfully, and tests fail (because it’s trying to run ARM test binaries on my amd64 system).After all, I have 5g/5l in my $GOBIN folder and they produce valid and working ARM binaries. But what’s happening to other Go tools:5a: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (u
The Byzantine
assembly arm keil cortex-m4 2014-1-19 6:44:46
I have two segments defined in ARM assembly for cortex – M4, one is code (Read only) and another is data (read write). The read only memory is defined to start at address 0x08000000 and the RW memory at 0x20000000. Each segment is defined in its own assembly file and label names are exported/imported correctly. The data segment is written as:AREA myData, Data, READWRITE EXPORT myStringmyString DCB “To be or not to be, that is the question”ENDIn the code, I am loading the address of the string by