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:
NSStrin
On Wed, Aug 21, 2013 at 2:35 AM, Dave 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 写道:
> 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 the whole thing. U
On Aug 20, 2013, at 18:02 , Uli Kusterer wrote:
> On Aug 20, 2013, at 12:36 PM, Gerriet M. Denkmann
> 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 and often these
>> are toll-free bridged. T
On 20/08/2013, at 2:51 AM, Rick Mann 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. In some cases it's
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, signed/un
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.
I
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 conta
On 21/08/2013, at 1:24 PM, Shane Stanley 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
> disappearing.
The arguments are
On 21/08/2013, at 10:03 PM, Graham Cox 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 -initWithWindowNibName: and
On Aug 21, 2013, at 5:29 AM, Alex Zavatone 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 wrote:
>
>> However, this does:
>>
>> @interface NSArray (NSArrayCreation)
>
> ? That method has both common
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 tha
On 20 Aug 2013, at 3:07 PM, George Toledo 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 loading of a NIB
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:)
> andReturn:theValue(GLKMatrix4
On Aug 21, 2013, at 17:24 , Jeff Kelley wrote:
>
> *** Terminating app due to uncaught exception 'NSInvalidArgumentException',
>> reason: '+[NSMethodSignature signatureWithObjCTypes:]: unsupported type
>> encoding spec '(' in '(_GLKMatrix4={?=}[16f])8@12''
>
>
> I’m not too fa
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 wrote:
> if ([myType isEqualToString:@"NSInteger"] )
> {
> myNSInteger = va_arg(myArgumentList,NSInteger*);
> // do something with myNSInteger
> [myFormattedString appendFormat:@"myNSInteger = %d ",
> m
On Aug 19, 2013, at 6:08 PM, zou tian 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 (Cocoa-dev@lists.apple.com)
Pleas
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 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 bridged cast
>
> on
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 wrote:
> The approach I mentioned is what NSArray uses to allow
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 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 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!'
terminate called thro
On Aug 20, 2013, at 5:41 PM, Bradley O'Hearne 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 other way
> (such as fro
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 t
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 header, I am
> looping through the list and call NSString's
> stringByReplacingOccurancesOfString:wi
On 22/08/2013, at 1:03 AM, Shane Stanley wrote:
> *** Terminating app due to uncaught exception 'NSInvalidArgumentException',
> reason: '*** -[NSProxy doesNotRecognizeSelector:unCompileWith:at:and:]
> called!'
> terminate called throwing an exception
> Right, that's the method I posted earlie
Hi,
It's not much good to me since I don't have a problem passing objects but with
passing a mixed set.
Type passing, 1,2,3,5.6,@"hello",nil to the arrayWithObjects and you will see
what I mean
Cheers
Dave
On 21 Aug 2013, at 20:04, Alex Zavatone wrote:
> Just in case the styled text is str
33 matches
Mail list logo