Hi,
I have a method that takes one fixed parameter and then a variable number of
parameters, the method is defined as:
-(void) methodX:(NSString*) theName,…
The variable parameter list in this case can contain values of any type, e.g.
an Object pointers, Integers, Floats etc, as in:
On Wed, Aug 21, 2013 at 2:35 AM, Dave d...@looktowindward.com wrote:
-(void) methodX:(NSString*) theName,…
{
va_list
myArgumentList;
NSInteger
myArgumentCount;
myArgumentCount = 0;
va_start(myArgumentList,theMethodName);
while(va_arg(myArgumentList,NSString*) != nil)
may be you can try CGContextSaveState and CGContextRestoreState ~~
在 2013年8月20日,上午8:03,Rick Mann rm...@latencyzero.com 写道:
I'm drawing a couple of arcs and then calling ClosePath() to close up the
shape I drew. This works great. But then I repeat the process in a different
place, and stroke
On Aug 20, 2013, at 18:02 , Uli Kusterer witness.of.teacht...@gmx.net wrote:
On Aug 20, 2013, at 12:36 PM, Gerriet M. Denkmann gerr...@mdenkmann.de
wrote:
Well that much I know. And I also know that many NS/UI-things (which use
Objective-C) often have a CF-counterpart, which uses plain C
On 20/08/2013, at 2:51 AM, Rick Mann rm...@latencyzero.com wrote:
Obviously, it can't be changed now, but AddArc() should never have drawn that
first line segment. It's inconsistent with what you probably want, and with
other methods like CGContextAddLines() or CGContextAddRect().
Depends.
Hi,
Sorry that snippet was from an existing method that used a nil terminated list,
you're right, I can't do that in this case.
I was thinking that it would be easier if everything was an Object, the types I
need to support are:
id
Numeric types,
I've seen lots of references to this on the Web, but nothing that seems
relevant to what I'm seeing. I've had a report of this happening in my app, and
I've seen it once myself -- it's not exactly repeatable. The method in question
is an undo method, and the crash was not provoked by undoing.
However, this does:
@interface NSArray (NSArrayCreation)
+ (id)array;
+ (id)arrayWithObject:(id)anObject;
+ (id)arrayWithObjects:(const id [])objects count:(NSUInteger)cnt;
+ (id)arrayWithObjects:(id)firstObj, ... NS_REQUIRES_NIL_TERMINATION;
arrayWithObjects:
Creates and returns an array
On 21/08/2013, at 1:24 PM, Shane Stanley sstan...@myriad-com.com.au wrote:
If I understand correctly, the arguments when I use
prepareWithInvocationTarget: are retained. In this case the target is the
document's sole window controller and owner of the nib, so it's not like it's
On 21/08/2013, at 10:03 PM, Graham Cox graham@bigpond.com wrote:
The arguments are retained, but the target is not. Does knowing that make any
difference to your memory managment analysis?
I don't think so. The target is the window controller in a document-based app,
created with
On Aug 21, 2013, at 5:29 AM, Alex Zavatone z...@mac.com wrote:
However, this does:
@interface NSArray (NSArrayCreation)
? That method has both common base types and a nil terminator.
--
Scott Ribe
scott_r...@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice
I copied and pasted that code from the iOS NSArray.h file.
The example you want is in bold.
On Aug 21, 2013, at 9:39 AM, Scott Ribe wrote:
On Aug 21, 2013, at 5:29 AM, Alex Zavatone z...@mac.com wrote:
However, this does:
@interface NSArray (NSArrayCreation)
? That method has both
On Aug 21, 2013, at 3:22 AM, Dave wrote:
Sorry that snippet was from an existing method that used a nil terminated
list, you're right, I can't do that in this case.
I was thinking that it would be easier if everything was an Object, the types
I need to support are:
id
So what's the actual error (the title of the email seems incomplete)?
If NSProxy is the receiver, that's most likely the NSProxy that NSUndoManager
returns from -prepareWithInvocationTarget: The proxy should forward absolutely
everything to the NSUndoManager, except possibly certain messages
On 20 Aug 2013, at 3:07 PM, George Toledo gtole...@gmail.com wrote:
If you have code that needs to happen first/once at start, maybe you can try
putting it in awakeFromNib.
This may often be the case, but it is not guaranteed. -awakeFronNib is called
every time an object is implicated in the
I’ve been trying to TDD an app that uses GLKit using the Kiwi test
framework. One of the methods I’m stubbing returns a GLKMatrix4. I stub it
like this:
PhysicsManager *mockManager = [PhysicsManager mock];
[mockManager stub:@selector(physicsTransformForObject:)
On Aug 21, 2013, at 17:24 , Jeff Kelley slauncha...@gmail.com wrote:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '+[NSMethodSignature signatureWithObjCTypes:]: unsupported type
encoding spec '(' in '(_GLKMatrix4={?=}[16f])8@12''
Hi,
I the following method generate an an:
Implicit conversion of Objective-C pointer type 'Class' to C pointer type
'struct objc_class *' requires a bridged cast
on the line marked below:
+ (NSString*) cacheDirectoryPath
{
NSString* myReturnValue;
Hi,
I the following method generate an an:
Implicit conversion of Objective-C pointer type 'Class' to C pointer type
'struct objc_class *' requires a bridged cast
on the line marked below:
+ (NSString*) cacheDirectoryPath
{
NSString* myReturnValue;
On Wed, Aug 21, 2013 at 4:22 AM, Dave d...@looktowindward.com wrote:
if ([myType isEqualToString:@NSInteger] )
{
myNSInteger = va_arg(myArgumentList,NSInteger*);
// do something with myNSInteger
[myFormattedString
On Aug 19, 2013, at 6:08 PM, zou tian zoutia...@icloud.com wrote:
may be you can try CGContextSaveState and CGContextRestoreState ~~
These functions don’t save and restore the current path.
--
David Duncan
___
Cocoa-dev mailing list
The approach I mentioned is what NSArray uses to allow an arbitrary amount of
objects in this call to init it. Supplying nil tells the runtime that there
are no more parameters.
NSArray *myArray;
myArray = [NSArray alloc] initWithObjects: @my String, @another, @more,
nil];
It's the nil
By any chance is the method above it not closed?
Sent from my iPad
On Aug 21, 2013, at 12:58 PM, Dave d...@looktowindward.com wrote:
Hi,
I the following method generate an an:
Implicit conversion of Objective-C pointer type 'Class' to C pointer type
'struct objc_class *' requires a
Just in case the styled text is stripped, here is the line I'm referring to
from the header file:
+ (id)arrayWithObjects:(id)firstObj, ... NS_REQUIRES_NIL_TERMINATION;
Sent from my iPad
On Aug 21, 2013, at 2:58 PM, Alex Zavatone z...@mac.com wrote:
The approach I mentioned is what NSArray
On Aug 21, 2013, at 10:58 AM, Dave wrote:
Implicit conversion of Objective-C pointer type 'Class' to C pointer type
'struct objc_class *' requires a bridged cast
on the line marked below:
+ (NSString*) cacheDirectoryPath
{
NSString* myReturnValue;
On Aug 21, 2013, at 09:58 , Dave d...@looktowindward.com wrote:
Implicit conversion of Objective-C pointer type 'Class' to C pointer type
'struct objc_class *' requires a bridged cast
on the line marked below:
+ (NSString*) cacheDirectoryPath
{
NSString* myReturnValue;
On 21/08/2013, at 11:51 PM, Graham Cox graham@bigpond.com wrote:
So what's the actual error (the title of the email seems incomplete)?
*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '*** -[NSProxy doesNotRecognizeSelector:unCompileWith:at:and:] called!'
On Aug 20, 2013, at 5:41 PM, Bradley O'Hearne br...@bighillsoftware.com wrote:
In my case, the URL is custom, configured with launch services and in my
app's info.plist file. The app is launched by opening a URL with the
specified protocol from a web browser. It is not being launched any
Dear list,
I have an iOS app that loads a local html file into a UIWebView.
The content is quite large, about 1MB, it is the full text of a law.
By tapping a button, users can reveal the number of published court rulings for
each of the law's articles.
As this data changes frequently, a list
Don't know if this helps you Diederik but from what I've read the parser
developed by Oliver Drobnik would be a good place to start on implementing your
own or even using his DTHTMLParser:
http://www.cocoanetics.com/2013/08/dtfoundation-1-5-2/
Regards,
--
Esteban Torres
(+506)8813-0934
Skype:
On 21 Aug 2013, at 4:44 PM, Diederik Meijer | Ten Horses wrote:
The web service returns the list lightning fast, but in order to get the
count number added to each of the 300 articles html h4 header, I am
looping through the list and call NSString's
On 22/08/2013, at 1:03 AM, Shane Stanley sstan...@myriad-com.com.au wrote:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '*** -[NSProxy doesNotRecognizeSelector:unCompileWith:at:and:]
called!'
terminate called throwing an exception
Right, that's the
32 matches
Mail list logo