Displaying 20 results from an estimated 29 matches for "nsstring".
Did you mean:
isstring
2006 Apr 15
3
Further problems with rubyt2 on MacOS X (intel)
...-------------------------------------
NSObjCRuntime.h, around line 60, reads:
------------------------------------------------------------------------
#define NSFoundationVersionNumber10_3_2 500.3
#define NSFoundationVersionNumber10_3_3 500.54
#define NSFoundationVersionNumber10_3_4 500.56
@class NSString;
FOUNDATION_EXPORT NSString *NSStringFromSelector(SEL aSelector);
FOUNDATION_EXPORT SEL NSSelectorFromString(NSString *aSelectorName);
FOUNDATION_EXPORT Class NSClassFromString(NSString *aClassName);
------------------------------------------------------------------------
any suggestions?
thank...
2013 Jul 22
0
[LLVMdev] Libclang get class name from DeclRefExpr
...ect:helpmeh];
}
And the result I need is the type of class of helpmeh, which is
"DFDemoDataModelOne".
So far I have the following code, which outputs:
"[(DFDataModelContainer).dataModels addObject:helpmeh]"
if (cursor.kind == CXCursor_ObjCMessageExpr) {
__block NSString* memberName = nil;
__block NSString* ownerClassName = nil;
__block NSString* methodName = [NSString
stringWithUTF8String:clang_getCString(clang_getCursorDisplayName(cursor))];
clang_visitChildrenWithBlock(cursor, ^enum
CXChildVisitResult(CXCursor cursor, CXCursor paren...
2013 Mar 21
0
[LLVMdev] (Not) instrumenting global string literals that end up in .cstrings on Mac
...;__cstring" section (really section with type S_CSTRING_LITERAL) is defined to contain zero terminate strings of bytes that the linker can merge and re-order. If you want pad bytes before and after the string, you need to put the strings in a different section (e.g. __TEXT, __const).
But, CF/NSString literals will be problematic. The compiler emits a static NS/CFString object into a data section. That object contains a pointer to its "backing" utf8 or utf16 string literal. The linker coalesce the NS/CFString objects (so that two translation units that define @"hello" will...
2013 Mar 21
2
[LLVMdev] (Not) instrumenting global string literals that end up in .cstrings on Mac
(forgot to CC llvmdev)
On Thu, Mar 21, 2013 at 5:54 PM, Alexander Potapenko <glider at google.com> wrote:
> Hey Anna, Nick, Ted,
>
> We've the following problem with string literals under ASan on Mac.
> Some global string constants end up being put into the .cstring
> section, for which the following rules apply:
> - the strings can't contain zeroes in their
2009 Nov 20
1
R 2.10 'memory leak'? on OS X
...es: KERN_PROTECTION_FAILURE at 0x0000000000067ee2
Crashed Thread: 0
Thread 0 Crashed:
0 libSystem.B.dylib 0xffff07c7 __memcpy + 39
(cpu_capabilities.h:246)
1 com.apple.CoreFoundation 0x96a6a0b4 __CFStringEncodeByteStream +
4052
2 com.apple.Foundation 0x94446eb7
-[NSString(NSStringOtherEncodings)
getBytes:maxLength:usedLength:encoding:options:range:remainingRange:] + 295
3 com.apple.Foundation 0x94446a1a _NSNewStringByAppendingStrings
+ 538
4 com.apple.Foundation 0x94446760 -[NSString
stringByAppendingString:] + 192
5 org.R-project.R...
2016 Sep 26
4
objc object file generated for gnustep runtime for ELF target is too big
...m using gnustep runtime -fobjc-runtime=gnustep with gnustep-libobjc2 (https://github.com/gnustep/libobjc2) and
Cocotron/Chameleon.
For following source file
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
int main(void)
{
NSString *str = [NSString stringWithCString:"TEST"];
NSLog(@"test object %@", str);
return 0;
}
Compilation in xcode's clang
xcrun -sdk iphoneos clang -arch armv7s -mios-version-min=6.1 -c test_foundation.m -o test_foundation_apple...
2009 Nov 26
1
compiling on snow leopard: Cocoa errors?!?!?!
...from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:15,
from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
from qdCocoa.h:39,
from qdCocoa.m:24:
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:278: error: format string argument follows the args to be formatted
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:280: error: format string argument follows the args to be formatted
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:25,...
2009 Nov 20
2
R 2.10 memory leak on OS X
...s: KERN_PROTECTION_FAILURE at 0x0000000000067ee2
Crashed Thread: 0
Thread 0 Crashed:
0 libSystem.B.dylib 0xffff07c7 __memcpy + 39
(cpu_capabilities.h:246)
1 com.apple.CoreFoundation 0x96a6a0b4 __CFStringEncodeByteStream +
4052
2 com.apple.Foundation 0x94446eb7
-[NSString(NSStringOtherEncodings)
getBytes:maxLength:usedLength:encoding:options:range:remainingRange:] + 295
3 com.apple.Foundation 0x94446a1a _NSNewStringByAppendingStrings
+ 538
4 com.apple.Foundation 0x94446760 -[NSString
stringByAppendingString:] + 192
5 org.R-project.R...
2007 Jan 16
3
Help upgrading to 1.1.3 (MD5 sum issues, album art corrupts files)
Hello all,
I recently upgraded the libFLAC used in my application Max (http://
sbooth.org/Max/) to 1.1.3 and added preliminary support for album
art. During the upgrade I evidently made some coding mistakes with
interesting results. I've combed everything over and can't quite see
the problems. I've become somewhat frustrated because my code didn't
really change
2013 May 08
1
[LLVMdev] [lld] contentHash in the Reader ?
On 5/8/2013 2:45 PM, Nick Kledzik wrote:
>
> I'd rather we use a crypto hash so we don't have to compare content at all.
> The crypto hashes work well if the atom content is const data (e.g. c-string or other literals), since you just point the hash function at the range of bytes in the constant data. Where it gets messier is if you are trying to coalesce non-leaf functions or
2007 Jan 23
2
[LLVMdev] Semi-random crashes seemingly related to Arguments
...umentAtIndex:(int)argIndex
{
Argument *ArgX;
if ( argIndex < numArgs ) {
int i;
ArgX = ((Function*)function)->arg_begin();
for (i=0 ;i<argIndex;i++) {
++ArgX;
}
[NSString stringWithFormat:@"get argument[%d/%d]=
%x",argIndex,numArgs,ArgX]; // with this in place, it doesn't
crash
return [MPWLLVMValue
llvmValueWithLLVMValue:ArgX]; // wrap the arg
} else {
//--- error handling, irrelevant here...
[NS...
2014 Sep 30
4
[LLVMdev] Barking Up The Wrong Tree?
Hi Reid,
Thanks for the reply. Comments inline below.
Regards,
Eric
On 9/29/14, 5:51 PM, Reid Kleckner wrote:
> I think any port will involve some changes, but it's really hard to
> say which porting approach will be the least painless beforehand.
> Aside from _MSC_VER incompatibilities messing up portability headers,
> I think any changes you make to support clang on Windows
2012 Oct 02
1
[LLVMdev] Error prone default memory capturing convention of blocks.
...rs at first place, not to rely on that tool will find it.
Proposition:
Any variable captured in block must have explicit qualifier to specify memory capturing semantic: __retain, __weak, __unsafe_unretained. Qualifier is obligatory, no defaults allowed.
Code will look something like this:
1)
NSString* theLocalVariable = …
...^ {
...
__weak self;
self.blabla = ...
…
[self blabla:(__retain theLocalVariable)];
}
2)
{
self.blabla = … // compile error: missing memory capture semantic qualifier.
....
}
For __block qualifier I propose to leave old behavior (leave the default __retain sema...
2011 Apr 21
1
[LLVMdev] A problem from XCode 4 - help sought tracking it down
...LLVM2 as compiler) vs the code below, it reproduces the problem:
template <typename I0,typename I1>
void (^ cc(void (^f)(I0,I1), I0 i0))(I1)
{
^ void (I1 i1) { };
}
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
cc(^ void (NSString * a, id b) { NSLog(a, b); }, @"%@");
[pool drain];
}
Thanks,
Matt
2007 Jan 23
0
[LLVMdev] Semi-random crashes seemingly related to Arguments
...Argument *ArgX;
> if ( argIndex < numArgs ) {
> int i;
> ArgX = ((Function*)function)->arg_begin();
> for (i=0 ;i<argIndex;i++) {
> ++ArgX;
> }
>
> [NSString stringWithFormat:@"get argument[%d/%d]=
> %x",argIndex,numArgs,ArgX]; // with this in place, it doesn't
> crash
> return [MPWLLVMValue
> llvmValueWithLLVMValue:ArgX]; // wrap the arg
> } else {
> //--- error handling, irrelevant here....
2007 Jan 22
2
[LLVMdev] addPassesToEmit(Whole)File changes?
...e
not just functions, but also some global data.
I am currently installing older versions to see if that will work, but
of course I will need to get it to work with the newest llvm version
at some point.
Any pointers?
Thanks!
Marcel
This is my current code:
-(void)dumpAssemblerToFile:(NSString*)filename
{
TargetMachine::CodeGenFileType FileType = TargetMachine::AssemblyFile;
std::string err1;
Module *M=(Module*)module;
const TargetMachineRegistry::Entry* entry=
TargetMachineRegistry::getClosestStaticTargetForModule( *M, err1 );
TargetMachine &target=*entry->CtorFn( *M, &qu...
2004 Nov 18
0
R bug ?? (PR#7378)
...rmat=flowed
Sometime, R generates following warning message.
To restore, I must press command+.
> edit(tolerance)
2004-11-18 11:07:27.003 R[420] *** NSTimer discarding exception=20
'NSInvalidArgumentException' (reason '*** -[NSTextView=20
replaceCharactersInRange:withString:]: nil NSString given.') that=20
raised during firing of timer with target 3bd520 and selector=20
'runRELP:'
By the way, function 'tolerance' is described in EUC-JP code and has=20
Mac line feed code(CR), and it contains Japanese character(KANJI).
When I want to see the definition of such fun...
2005 Dec 16
1
AppleScript commands don't execute until mouse over console window (PR#8405)
...lves the
problem, by posting a dummy event to wake up the event queue after the command
has been stuffed into the input buffer.
--- RController.m (revision 2076)
+++ RController.m (working copy)
@@ -1104,7 +1104,18 @@
The input replaces what the user is currently typing.
*/
- (void) sendInput: (NSString*) text {
+ NSPoint null = {0,0};
[self consoleInput:text interactive:YES];
+ [NSApp postEvent:[NSEvent otherEventWithType: NSApplicationDefined
+ location: null
+ modifierFlags: 0
+...
2007 Jan 22
0
[LLVMdev] addPassesToEmit(Whole)File changes?
...e
not just functions, but also some global data.
I am currently installing older versions to see if that will work, but
of course I will need to get it to work with the newest llvm version
at some point.
Any pointers?
Thanks!
Marcel
This is my current code:
-(void)dumpAssemblerToFile:(NSString*)filename
{
TargetMachine::CodeGenFileType FileType = TargetMachine::AssemblyFile;
std::string err1;
Module *M=(Module*)module;
const TargetMachineRegistry::Entry* entry=
TargetMachineRegistry::getClosestStaticTargetForModule( *M, err1 );
TargetMachine &target=*entry->CtorFn( *M, &qu...
2011 Jun 20
0
[LLVMdev] C struct as function argument
Hello Michael,
> The module dump suggests everything is right, i can see in the function call the struct with the values 10 and 25, but the function is only received the 10 for the x field, nothing for the y field. Am I missing something?
You're missing the Platform ABI. I assume you're on x86-64, then your
struct (according to the ABI) should be passed in a single 64 bit
register as