When I set up my server like:
NSConnection *theConnection = [[NSConnection alloc] init];
[ theConnection setRootObject: self ];
BOOL ok = [theConnection registerName: @"someName" ];
Then a client is not able to get the rootProxy.
When I add this line:
[[NSRunLoop curre
> Sorry, I did in fact mean -[NSView convertRectToLayer:] and
> -convertRectToBacking:. As well as the point-based conversion methods.
I am now using a local method in myNSTextView:
- (NSRect) convertRectToLayer: (NSRect)
{
aRect.origin.y = (self.bounds.size.height - aRect.size.height -
aRec
On Aug 27, 2012, at 4:53 AM, "Gerriet M. Denkmann" wrote:
> In the main thread of an application based on the Application Kit…
In other words, do you call NSApplicationMain in your function main on your
server app? If not, then in a simplistic answer, your app is not based on
AppKit.
--
Gary L
On 27 Aug 2012, at 21:31, Gary L. Wade wrote:
> On Aug 27, 2012, at 4:53 AM, "Gerriet M. Denkmann"
> wrote:
>
>> In the main thread of an application based on the Application Kit…
>
> In other words, do you call NSApplicationMain in your function main on your
> server app? If not, then in a
On Mon, Aug 27, 2012, at 04:53 AM, Gerriet M. Denkmann wrote:
> The documentation says:
>
> " In the main thread of an application based on the Application Kit, the
> run loop is already running, so there is nothing more to do to vend an
> object. In a secondary thread or an application that does
On 27 Aug 2012, at 21:47, Kyle Sluder wrote:
> On Mon, Aug 27, 2012, at 04:53 AM, Gerriet M. Denkmann wrote:
>> The documentation says:
>>
>> " In the main thread of an application based on the Application Kit, the
>> run loop is already running, so there is nothing more to do to vend an
>> obj
On Mon, Aug 27, 2012, at 04:53 AM, Gerriet M. Denkmann wrote:
> When I set up my server like:
> NSConnection *theConnection = [[NSConnection alloc] init];
Also, the designated initializer for NSConnection is
-initWithReceivePort:sendPort:. I have no idea what behavior -init has.
--Kyle Sluder
On 27 Aug 2012, at 22:02, Kyle Sluder wrote:
> On Mon, Aug 27, 2012, at 04:53 AM, Gerriet M. Denkmann wrote:
>> When I set up my server like:
>>NSConnection *theConnection = [[NSConnection alloc] init];
>
> Also, the designated initializer for NSConnection is
> -initWithReceivePort:sendPort
On Aug 27, 2012, at 8:23 AM, "Gerriet M. Denkmann" wrote:
>
> "new" is documented as "Allocates a new instance of the receiving class,
> sends it an init message, and returns the initialized object."
Except, you know, the part where -[NSConnection init] is documented to do
anything useful. W
On 27 Aug 2012, at 22:49, Kyle Sluder wrote:
> On Aug 27, 2012, at 8:23 AM, "Gerriet M. Denkmann"
> wrote:
>
>>
>> "new" is documented as "Allocates a new instance of the receiving class,
>> sends it an init message, and returns the initialized object."
>
> Except, you know, the part wher
On Aug 27, 2012, at 9:10 AM, "Gerriet M. Denkmann" wrote:
>
> On 27 Aug 2012, at 22:49, Kyle Sluder wrote:
>
>> On Aug 27, 2012, at 8:23 AM, "Gerriet M. Denkmann"
>> wrote:
>>
>>>
>>> "new" is documented as "Allocates a new instance of the receiving class,
>>> sends it an init message, an
On 27 Aug 2012, at 23:17, Kyle Sluder wrote:
> On Aug 27, 2012, at 9:10 AM, "Gerriet M. Denkmann"
> wrote:
>
>>
>> On 27 Aug 2012, at 22:49, Kyle Sluder wrote:
>>
>>> On Aug 27, 2012, at 8:23 AM, "Gerriet M. Denkmann"
>>> wrote:
>>>
"new" is documented as "Allocates a new ins
On Aug 27, 2012, at 9:35 AM, "Gerriet M. Denkmann" wrote:
>
> You are right. Now have:
> NSMachPort *sendPort = (NSMachPort *)[ NSMachPort port ];
> but still the same.
>
> It seems that everything works as expected on 10.6.8
Hmm. You're not sandboxed, are you? If you are, are you gettin
On Sat, 25 Aug 2012 17:58:39 +0200, Uli Kusterer said:
>>> const UInt8 *cpath = (const UInt8 *)[path
>cStringUsingEncoding:NSUTF8StringEncoding];
>>
>> -UTF8String is shorter.
>
> Both of these are wrong, though. You should *always* use -
>fileSystemRepresentation when you need a C-string re
On 27 Aug 2012, at 23:40, Kyle Sluder wrote:
> On Aug 27, 2012, at 9:35 AM, "Gerriet M. Denkmann"
> wrote:
>
>>
>> You are right. Now have:
>> NSMachPort *sendPort = (NSMachPort *)[ NSMachPort port ];
>> but still the same.
>>
>> It seems that everything works as expected on 10.6.8
>
On 27 Aug 2012, at 23:40, Kyle Sluder wrote:
> On Aug 27, 2012, at 9:35 AM, "Gerriet M. Denkmann"
> wrote:
>
>>
>> You are right. Now have:
>> NSMachPort *sendPort = (NSMachPort *)[ NSMachPort port ];
>> but still the same.
>>
>> It seems that everything works as expected on 10.6.8
>
There isn't a run loop running yet at applicationDidFinishLaunching:.
Defer your code with performSelector: afterDelay:0
Kirk Kerekes
(iPhone)
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comm
On Aug 27, 2012, at 9:50 AM, Sean McBride wrote:
> On Sat, 25 Aug 2012 17:58:39 +0200, Uli Kusterer said:
>
const UInt8 *cpath = (const UInt8 *)[path
>> cStringUsingEncoding:NSUTF8StringEncoding];
>>>
>>> -UTF8String is shorter.
>>
>> Both of these are wrong, though. You should *alway
On Aug 27, 2012, at 12:43 PM, David Duncan wrote:
> On Aug 27, 2012, at 9:50 AM, Sean McBride wrote:
>
>> On Sat, 25 Aug 2012 17:58:39 +0200, Uli Kusterer said:
>>
>const UInt8 *cpath = (const UInt8 *)[path
>>> cStringUsingEncoding:NSUTF8StringEncoding];
-UTF8String is shorte
On Mon, Aug 27, 2012, at 10:40 AM, Kirk wrote:
> There isn't a run loop running yet at applicationDidFinishLaunching:.
>
> Defer your code with performSelector: afterDelay:0
While this is true, the very next thing after
-applicationDidFinishLaunching: will be NSApplication calling
[[NSRunLoop cur
This may be true now.
Historically there have been runloop-dependent functionalities that would not
work correctly if started in applicationDidFinishLaunching: .
To avoid hair-tearing I just always define an applicationDidBeginRunLoop:
method that is invoked by a zero-delay perform launched f
- (void)setGraphicProperties:(SKTMapTableOwner *)propertiesPerGraphic {
NSMapEnumerator propertiesPerGraphicEnumerator =
NSEnumerateMapTable([propertiesPerGraphic mapTable]);
Shape *graphic;
NSDictionary *graphicProperties;
while (NSNextMapEnumeratorPair(&propertiesPerGraphicEn
I thought someone else might benefit from this little discovery, so here you go.
I've been a big fan of ImageOptim to mess with the internals of PNG files and
make them nice and small, even with the new warning about use with Xcode and
until recently, I've had no problems with PNG files being ru
23 matches
Mail list logo