NSAccessibilityPressAction on NSMenuItem

2014-07-12 Thread Remco Poelstra
and send the press action to it. How do I get that AXMenuItem? Or how can I send the press action to a menu item? Thanks in advance. Kind regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Simulating sublayers in CATiledLayer

2014-03-26 Thread Remco Poelstra
in December or so if I recall correctly (search for 'Threaded drawing'), which expounded on this. I got CATiledLayer zooming to work as expected with vector content remaining sharp, but only once these properties had been understood and set. --Graham On 26 Mar 2014, at 4:55 am, Remco Poelstra

Re: Simulating sublayers in CATiledLayer

2014-03-25 Thread Remco Poelstra
David Duncan schreef op 24-3-2014 20:41: On Mar 22, 2014, at 2:18 AM, Remco Poelstra re...@beryllium.net mailto:re...@beryllium.net wrote: How can I make sure that some custom drawing method get's called? Call -setNeedsDisplay on the layer (layers are valid by default) Hi, I tried

Re: Simulating sublayers in CATiledLayer

2014-03-25 Thread Remco Poelstra
not already doing so, you could try calling -setNeedsDisplayOnBoundsChange: with YES. Sandor On Mar 25, 2014, at 4:56, Remco Poelstra re...@beryllium.net wrote: David Duncan schreef op 24-3-2014 20:41: On Mar 22, 2014, at 2:18 AM, Remco Poelstra re...@beryllium.net mailto:re...@beryllium.net wrote

Re: Simulating sublayers in CATiledLayer

2014-03-25 Thread Remco Poelstra
Op 25 mrt. 2014 om 17:25 heeft David Duncan david.dun...@apple.com het volgende geschreven: On Mar 25, 2014, at 1:56 AM, Remco Poelstra re...@beryllium.net wrote: David Duncan schreef op 24-3-2014 20:41: On Mar 22, 2014, at 2:18 AM, Remco Poelstra re...@beryllium.net wrote: How can I

Re: Simulating sublayers in CATiledLayer

2014-03-25 Thread Remco Poelstra
Op 25 mrt. 2014 om 17:59 heeft Kyle Sluder k...@ksluder.com het volgende geschreven: On Mar 25, 2014, at 9:50 AM, Remco Poelstra re...@beryllium.net wrote: I've tried with both CALayer and CATiledLayer sublayers, but the CATiledLayer also did not redraw (at higher resolution) when its

Re: Simulating sublayers in CATiledLayer

2014-03-22 Thread Remco Poelstra
method get's called? Thanks in advance. Kind regards, Remco Poelstra Op 21 mrt. 2014, om 21:22 heeft Remco Poelstra re...@beryllium.net het volgende geschreven: I'm working on an iOS app which needs to draw paths. Drawing is performed in layers, each layer having its own color. Some paths

Simulating sublayers in CATiledLayer

2014-03-21 Thread Remco Poelstra
layer to a CATiledLayer while keeping any knowledge about the clipping path (i.e. skipping over any paths which are outside the clip bounds)? Thanks in advance. Kind regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Simulating sublayers in CATiledLayer

2014-03-21 Thread Remco Poelstra
Op 21 mrt. 2014 om 17:28 heeft David Duncan david.dun...@apple.com het volgende geschreven: On Mar 21, 2014, at 3:53 AM, Remco Poelstra re...@beryllium.net wrote: Hi, I'm working on an iOS app which needs to draw paths. Drawing is performed in layers, each layer having its own

Re: Separators line between table view cells is inonsistent

2014-01-27 Thread Remco Poelstra
the separators correctly at all times. I hope they will fix it in 7.1. Regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev

Re: File association using file magic

2014-01-24 Thread Remco Poelstra
Op 22 jan. 2014, om 15:33 heeft Remco Poelstra re...@beryllium.net het volgende geschreven: I'm writing an app which has to import files without a fixed file extension. There are about 10 different commonly used file extensions around. Is it possible to associate a file to my app based

File association using file magic

2014-01-23 Thread Remco Poelstra
register all know file extensions? Regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help

UIView size after rotation

2011-03-30 Thread Remco Poelstra
in the old orientation, although the orientation property is already updated. Thanks in advance. Regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

UITabBarController calls viewDidAppear

2011-03-21 Thread Remco Poelstra
on a wrong row insert command in viewDidAppear. How can I find out why the viewDidAppear is called to early? Kind regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: rewriting observed keyPath

2011-02-16 Thread Remco Poelstra
where the full keyPath might not yet exist. You can still register for it and be notified as soon as it's created. Regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: rewriting observed keyPath

2011-02-16 Thread Remco Poelstra
Op 16 feb 2011, om 11:39 heeft Quincey Morris het volgende geschreven: On Feb 16, 2011, at 00:19, Remco Poelstra wrote: Leaves me wondering how that KVO registering works, how does the runtime now that it's the same path that is monitored? Actually, there's no magic involved* -- it's

rewriting observed keyPath

2011-02-15 Thread Remco Poelstra
regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription

Re: rewriting observed keyPath

2011-02-15 Thread Remco Poelstra
the actual @current.parameters keyPath. Maybe KVO doesn't support this at all, I'm just hope it will :) Regards, Remco Poelstra Op 15 feb 2011, om 19:51 heeft Quincey Morris het volgende geschreven: On Feb 15, 2011, at 05:11, Remco Poelstra wrote: I've a PresetsController which holds

UITextField not shrinking text

2011-02-01 Thread Remco Poelstra
Hi, When I set an UILabel to adjustFontSizeToFitWidth=YES with a fontSize of 10, the label behaves as expected when I place long text in the label. When I do the same for an UITextField, the text shrinks a bit, but not to font size 10. Does anybody know why that is? Kind regards, Remco

Link to Settings.App

2011-01-24 Thread Remco Poelstra
any reference on how to do that. Can anybody point me in the right direction? Kind regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Mutable to-many relationship not observable

2011-01-17 Thread Remco Poelstra
of NSKeyValueChangeInsertion, NSKeyValueChangeRemoval, or NSKeyValueChangeReplacement. Your suspicion was right. I had implemented it completely the wrong way. Works perfect now. Thanks. Regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev

Mutable to-many relationship not observable

2011-01-14 Thread Remco Poelstra
. The KVC Guide states that I get automatic KVO by implementing these methods. Is there something I did wrong? Kind regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Mutable to-many relationship not observable

2011-01-14 Thread Remco Poelstra
the observed object) with [self {will/did}change..] then everything works fine. Regards, Remco Poelstra Op 14 jan 2011, om 12:11 heeft Mike Abdullah het volgende geschreven: Show us your code that adds the observer. Also, what is the superclass of this class? On 14 Jan 2011, at 10:45, Remco

Socket error and socket end

2011-01-11 Thread Remco Poelstra
? Kind regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your

UITableView with only 1 row selectable

2010-12-24 Thread Remco Poelstra
Hi, I've an UITableView with allowsSelection=NO; I was wondering whether it's possible to do allow selection of a specific row. Is there some way I can detect a touch of a row and simulate a select in software? Thanks in advance. Regards, Remco Poelstra

Re: UITableView with only 1 row selectable

2010-12-24 Thread Remco Poelstra
and then implement the delegate method tableView:willSelectRowAtIndexPath: to return nil for any row you do NOT want selected (see the documentation). That seems to be apple's designed way to do this. On 24-Dec-2010, at 5:23 PM, Remco Poelstra wrote: Hi, I've an UITableView

Re: UITableView with only 1 row selectable

2010-12-24 Thread Remco Poelstra
isn’t called when theediting property of the table is set to YES (that is, the table view is in editing mode). On 24-Dec-2010, at 6:03 PM, Remco Poelstra wrote: Hi, Thanks for your e-mail. I've considered this, but I think it's ugly that the rows flash blue momentarily. Is there a way

Re: UITableView with only 1 row selectable

2010-12-24 Thread Remco Poelstra
that are selectable. I'll also assume that the OP is presenting the non-selectable rows differently (e.g. dimming them) to ensure that users will understand what is selectable and what is not. On 24-Dec-2010, at 5:23 PM, Remco Poelstra wrote: Hi, I've an UITableView with allowsSelection

textFieldShouldEndEditing called multiple times

2010-12-22 Thread Remco Poelstra
is called multiple times. Why is that? Thanks in advance. Regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins

No TCP connection established after ARP request

2010-12-21 Thread Remco Poelstra
? How can I make sure that the ARP request is not needed? Or can I automatically resend the TCP SYN packet? Thanks in advance for any ideas. Kind regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Finding references to object

2010-12-10 Thread Remco Poelstra
Hi, Instruments tells me that I've a reference to an object, while I believe that that reference should no longer exist (and the object be deallocated). How can I now find out what objects have references to my should-be-deallocated-object? Kind regards, Remco Poelstra

Problem with NSInputStream

2010-12-07 Thread Remco Poelstra
regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription

Re: readonly property which is a mutable array

2010-11-19 Thread Remco Poelstra
an irrelevant implementation detail. Thanks for the tips. Hope this will kill some warnings :) Kind regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

readonly property which is a mutable array

2010-11-18 Thread Remco Poelstra
and make copies of the array while modifying it? Any insight would be appreciated. Kind regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

valueForKeyPath: not found in protocol

2010-11-16 Thread Remco Poelstra
#import NSKeyValueCodingProtocol.h than that header file is not found. How can I fix this? Kind regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Remco Poelstra
That works indeed. I hoped there was a more elegant solution. Kind regards, Remco Poelstra Op 16 nov 2010, om 11:43 heeft Gideon King het volgende geschreven: AFAIK, when something is referenced as a protocol like that, the *only* methods it knows about are the ones in the protocol. If you

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Remco Poelstra
More elegant indeed :). I thought delegates had to be of type id. Kind regards, Remco Poelstra Op 16 nov 2010, om 11:57 heeft Roland King het volgende geschreven: Or use NSObject* protocol Instead of id. Assuming that all the objects are NSObjects. On Nov 16, 2010, at 18:43

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Remco Poelstra
believe). That does not seem to work. I now have: #import UIKit/UIKit.h @protocol AudionetQueueDelegate NSObject @end But then the warning returns. (Having set the delegate to id AudionetQueueDelegate again). Kind regards, Remco Poelstra ___ Cocoa-dev

Re: Detecting reading a key in KVC

2010-11-12 Thread Remco Poelstra
more, NSDictionary seems to always return a value, so all keys are defined, they just return nil sometimes. How can valueForUndefinedKey: then ever be called? Kind regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Detecting reading a key in KVC

2010-11-12 Thread Remco Poelstra
'special powers' I can't see you are losing much in this case. It has the advantage that subclassing NS(Mutable)Dictionary is not required. Just out of curiosity, what is the use of the @ operator? I can't find anything about it in the KVC Programming Guide. Kind regards, Remco Poelstra

Re: Detecting reading a key in KVC

2010-11-12 Thread Remco Poelstra
Op 12 nov 2010, om 13:37 heeft Graham Cox het volgende geschreven: On 12/11/2010, at 11:24 PM, Remco Poelstra wrote: But if I do not override setValue:forKey: How does the KVC logic now that it should not try to call setValue:forKey: on my wrapper object, but on the enclosed dictionary

Re: Detecting reading a key in KVC

2010-11-12 Thread Remco Poelstra
: Regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your

Re: Detecting reading a key in KVC

2010-11-12 Thread Remco Poelstra
), but adding Undefined to my method names, I do keep the performance enhancements of the original implementation? Kind regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Detecting reading a key in KVC

2010-11-11 Thread Remco Poelstra
properties (82 items) on my own object or try to make a more intelligent subclass of NSMutableDictionary. Or maybe a composite object? Kind regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Detecting reading a key in KVC

2010-11-11 Thread Remco Poelstra
Op 11-11-2010 13:48, Graham Cox schreef: On 11/11/2010, at 11:41 PM, Remco Poelstra wrote: Leaves me wondering whether I should hardcode all properties (82 items) on my own object or try to make a more intelligent subclass of NSMutableDictionary. Or maybe a composite object

Re: Detecting reading a key in KVC

2010-11-11 Thread Remco Poelstra
Op 11-11-2010 14:11, Graham Cox schreef: On 12/11/2010, at 12:01 AM, Remco Poelstra wrote: Seems so :) I just tried that and observing the change of properties is now non-functional, as the request for observing is not forwarded to the NSDictionary behind my own object. Seems I've

Detecting reading a key in KVC

2010-11-10 Thread Remco Poelstra
that in the mean time a wrong value is returned. How can I detect a read of a property? Kind regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Joining App Developer Program

2010-11-03 Thread Remco Poelstra
Hi, I just enrolled into the iOS program and the we are trying to contact the legal representative took two weeks. The lady on the phone said there was a large queue causing the delay. Regards, Remco Poelstra Op 3 nov 2010, om 00:00 heeft Chris Idou het volgende geschreven: Sorry

UITableViewCell is not resized in UITableView

2010-10-11 Thread Remco Poelstra
recommendation): if (cell == nil) { [[NSBundle mainBundle] loadNibNamed:@AudionetTableViewCell owner:self options:nil]; cell=self.newCell; self.newCell=nil; } Thanks in advance. Kind regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev

Re: UITableViewCell is not resized in UITableView

2010-10-11 Thread Remco Poelstra
Then we solved each others problem :) Thanks for solving mine. Groetjes, Remco Op 11 okt. 2010 om 13:07 heeft Roland King r...@rols.org het volgende geschreven: That all works fine for me. The problem *I* have it getting the UITableView to resize cells horizontally. My tableview is

Re: init returns nil or raises exception?

2010-10-08 Thread Remco Poelstra
hoped it was 'the new way to go'. I like to more than checking for nil, but I might be a bit lazy :) I'll file a bug to get the docs updated. Regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: init returns nil or raises exception?

2010-10-08 Thread Remco Poelstra
Op 8 okt 2010, om 09:57 heeft Kyle Sluder het volgende geschreven: On Fri, Oct 8, 2010 at 12:04 AM, Remco Poelstra re...@beryllium.net wrote: Ah, I see. I hoped it was 'the new way to go'. I like to more than checking for nil, but I might be a bit lazy :) Checking for nil and assigning

Problem using dictionary

2010-10-08 Thread Remco Poelstra
Hi, I've the following code: NSDictionary *dict=[[NSDictionary alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@Indexes ofType:@plist]]; //This is actually a global initialized in +initialize. NSString *key=[NSString stringWithFormat:@%...@.%@,page,property];

Re: Problem using dictionary

2010-10-08 Thread Remco Poelstra
Ah, I should use valueForKeyPath:. Is there a reason valueForKey: is documented directly but valueForKeyPath: is not? Kind regards, Remco Poelstra Op 8 okt 2010, om 13:34 heeft Remco Poelstra het volgende geschreven: Hi, I've the following code: NSDictionary *dict=[[NSDictionary alloc

Re: Problem using dictionary

2010-10-08 Thread Remco Poelstra
Op 8 okt 2010, om 20:34 heeft Quincey Morris het volgende geschreven: On Oct 8, 2010, at 04:47, Remco Poelstra wrote: Is there a reason valueForKey: is documented directly but valueForKeyPath: is not? They're both documented, but it requires familiarity with how to read the Cocoa

init returns nil or raises exception?

2010-10-07 Thread Remco Poelstra
Hi, While still in the process of cleaning up my code, I read in the documentation of NSObject that -init should return nil if it fails to initialize. But a paragraph lower it's stated that -init should always return a functional instance or raise an exception. Isn't that in conflict with the

Checking for nil-return

2010-10-05 Thread Remco Poelstra
Hi, I'm cleaning up my code and I'm wondering about constructs like the next one: [NSNumber numberWithUnsignedChar:i] The documentation does not say it can return nil on failure, but does that mean it simply will never fail? What if there is no memory left? Kind regards, Remco Poelstra

Re: Checking for nil-return

2010-10-05 Thread Remco Poelstra
void, so always succeeds. How is that possible? Regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins

Re: Checking for nil-return

2010-10-05 Thread Remco Poelstra
Op 5-10-2010 16:23, Matt Gough schreef: On 5 Oct 2010, at 15:18:06, Remco Poelstra wrote: Op 5-10-2010 16:11, Dave DeLong schreef: Then you have much bigger problems. I already thought so :). But I noticed that [NSArray arrayWithCapacity] also never returns nil. But I can create a very

Property list file with NSNumber objects as keys

2010-10-04 Thread Remco Poelstra
/to file? Thanks in advance. Kind regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help

Re: Property list file with NSNumber objects as keys

2010-10-04 Thread Remco Poelstra
for me. I just hoped that using NSNumber would make it faster (to look up), since it requires less conversions. Regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Changing classes

2010-10-01 Thread Remco Poelstra
) the same layout. Kind regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update

Changing classes

2010-09-30 Thread Remco Poelstra
variables. What would be a nice solution to this problem? Kind regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins

Settings button in UITableView

2010-09-24 Thread Remco Poelstra
on the fly to all rows? Thanks in advance. Kind regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Re: Settings button in UITableView

2010-09-24 Thread Remco Poelstra
will give a (modal) detail view, so the responses are quite the same. Wouldn't that confuse them? Regards, Remco Poelstra Op 24 sep. 2010 om 17:19 heeft Conrad Shultz con...@synthetiqsolutions.com het volgende geschreven: Hi Remco, I haven't done what you're asking so I don't have

Re: Settings button in UITableView

2010-09-24 Thread Remco Poelstra
Op 24 sep. 2010 om 17:15 heeft Matt Neuburg m...@tidbits.com het volgende geschreven: On Fri, 24 Sep 2010 10:33:28 +0200, Remco Poelstra re...@beryllium.net said: Hi, I've a UITableView with UITableViewCell of style UITableViewStyleSubtitle. The table shows devices that the app has found

Re: Generating variable frequency tones

2010-09-10 Thread Remco Poelstra
Op 9 sep 2010, om 21:58 heeft Remco Poelstra het volgende geschreven: I'm looking for some way to generate a tone that resembles the sound of an instrument. I need precise control of the base frequency (pitch). I'm wondering what would be the best way to generate it on an iPhone. Store

Re: First trials in Cocoa app

2010-09-09 Thread Remco Poelstra
it to be difficult, but there is so much information to process at the moment, that I'm about to miss some details here and there. Thanks for pointing them out. Regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Generating variable frequency tones

2010-09-09 Thread Remco Poelstra
frequency? Synthesize a tone by calculating a bunch of sines? Doing some FFT trick on a file? If someone can give some insight into what would best fit the H/W available it would be grateful. Kind regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa

First trials in Cocoa app

2010-09-08 Thread Remco Poelstra
the NSMutableString as a global in the viewcontroller header file, is that a good idea given the MVC design pattern? Hope someone can get me started on this one. Kind regards, Remco Poelstra ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post