DO problem with NSConnection/NSSocketPortNameServer

2010-09-23 Thread Ken Tozier
Hi I'm writing a client/server application and can't get a valid NSConnection when I try to use NSSocketPortNameServer This works, locally, but I need a connection that will work on the network server = [[NSConnection serviceConnectionWithName: @"PMXServer" rootObject: self

Re: NSBox setContentView: messing with the cursor

2010-09-23 Thread Quincey Morris
On Sep 23, 2010, at 21:18, Richard Somers wrote: > I have a NSBox in a portion of a window. The box is used to swap views into > the window by setting the content view of the box. > > When a view is swapped in I need to set the cursor but NSBox is changing the > cursor out from underneath me. (

Re: NSBox setContentView: messing with the cursor

2010-09-23 Thread Ken Ferry
Hi Richard, NSBox.m makes no reference to cursors. I suggest you try building a small sample project that reproduces your problem. You'll either (1) not be able to, in which case you can try to find the difference between your real project and your sample, or (2) have a test case you can ask peo

Re: NSBox setContentView: messing with the cursor

2010-09-23 Thread koko
On Sep 23, 2010, at 10:18 PM, Richard Somers wrote: I have a NSBox in a portion of a window. The box is used to swap views into the window by setting the content view of the box. When a view is swapped in I need to set the cursor but NSBox is changing the cursor out from underneath me. (Th

NSBox setContentView: messing with the cursor

2010-09-23 Thread Richard Somers
I have a NSBox in a portion of a window. The box is used to swap views into the window by setting the content view of the box. When a view is swapped in I need to set the cursor but NSBox is changing the cursor out from underneath me. (This even happens when the cursor is not inside the box

RE: NSTableView display issue

2010-09-23 Thread Rufat A. Abdullayev
I had issue with iPhone (cocoa Touch) not desktop Rufat -Original Message- From: Kyle Sluder [mailto:kyle.slu...@gmail.com] Sent: Thursday, September 23, 2010 8:55 PM To: Rufat A. Abdullayev Cc: k...@highrolls.net; cocoa-dev list Subject: Re: NSTableView display issue On Sep 23, 201

Re: NSTimer memory management

2010-09-23 Thread slasktrattena...@gmail.com
Thanks all for the input. I'll take Scott's and Gregory's advice to not retain the timer. I've seen this advocated before, but always felt uneasy about not retaining my pointers. It just goes against all I ever learned about Cocoa. In this particular case, though, I might just as well get rid of t

Re: Better Question Formulation

2010-09-23 Thread Kyle Sluder
On Thu, Sep 23, 2010 at 3:48 PM, wrote: > Under what conditions will objectValueForTableColumn not be called after > -reloadData is called invoking numberOfRows? My guess is that the table view doesn't bother asking for the object value of offscreen rows. Do you find that your implementation is

Re: Setting the default folder in saveDocumentAs (NSDocument)

2010-09-23 Thread Conrad Shultz
If I understand what you're asking, I think you want NSSavePanel's -(void)setDirectoryURL:(NSURL*)url From the docs: "Sets the directory shown in the panel to the directory with the specified URL." -Conrad On Sep 21, 2010, at 2:17, Thorsten Lemke wrote: > Hello, > > How can I set the default

Better Question Formulation

2010-09-23 Thread koko
Under what conditions will objectValueForTableColumn not be called after -reloadData is called invoking numberOfRows? -koko ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

TableView and SplitView Display Problem

2010-09-23 Thread koko
The log below shows the problem I am having. A NSTableView does not always call tableView:objectValueForTableColumn:row after calling numberOfRows:InTableView (If you will take a moment the log should be explanatory) I need to solve this, thanks! -kok0 < Select item in Matrix view > < Ta

Re: To make an application start everytime when another program starts

2010-09-23 Thread Jerry Krinock
On 2010 Sep 23, at 15:02, John Pannell wrote: > I would guess you are looking to write a launchd "Agent" Yes, in theory. In practice, it's a little messy… > perhaps WatchPaths might be promising if Word can reliably be seen to modify > the filesystem in a specific location at launch. Yes, b

Re: NSOperation and threadDictionary

2010-09-23 Thread Julien Poissonnier
On Sep 22, 2010, at 12:52 AM, Rick Mann wrote: > Does iOS (and Mac OS X) clean up thread-local storage upon the completion of > an NSOperation? It seems dangerous to rely on every operation to clean up its > own mess. It also seems that an NSOperation should be able to pretend that it > owns t

How to remove an item from recentDocumentURLs

2010-09-23 Thread bmaclist
f a valid document gets into my 'Recent Documents' menu, and then gets corrupted such that I am unable to open it, how can I programmatically remove it from the Recent Documents list (without removing everything in the list)? Documentation says overriding recentDocumentURLs isn't used by the Do

Registering URL schemes with Launch Services from mounted DMG images

2010-09-23 Thread Jaroslav Snajdr
Hello, when I open and mount a DMG image that contains an application, Finder reads the Info.plist file and if there are CFBundleURLSchemes keys, registers the application with Launch Services. If I open an URL that launches this application, and I do it before I drag it to the Applications

How add app in startup item (global log in item)?

2010-09-23 Thread Macarov Anatoli
How add app in startup item ( http://www.cocoadev.com/index.pl?StartingMyAppOnStartup )? I use LaunchServices/LSSharedFileList.h  from http://cocoakids.net/recipe-3-adding-your-app-to-login-items-using-lssharedfilelist . But change attribute kLSSharedFileListSessionLoginItems on kLSSharedFileLi

Setting the default folder in saveDocumentAs (NSDocument)

2010-09-23 Thread Thorsten Lemke
Hello, How can I set the default folder for the saveDocumentAs handler? [self runModalSavePanelForSaveOperation:NSSaveAsOperation delegate:nil didSaveSelector:NULL contextInfo:NULL]; This is possible in Carbon with an AEDesc. Thorsten ___ Cocoa-dev

Re: To make an application start everytime when another program starts

2010-09-23 Thread John Pannell
Hi there- Read up on launchd, Apple's system init solution: http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man8/launchd.8.html http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man5/launchd.plist.5.html%23//apple_ref/doc/man/5/launchd

Re: To make an application start everytime when another program starts

2010-09-23 Thread Scott Ribe
On Sep 23, 2010, at 3:42 PM, eveningnick eveningnick wrote: > But a daemon, that is launched with the system start, and which > remains in memory all the time is not a good idea for a good > application... I think you have to. In order to autolaunch, see launchd. > Why do i need it. I am writing

Re: Cocoa Text System - Temporarily Disabling Layout

2010-09-23 Thread Martin Wierschin
The problem I've had to continuously hack around is that NSTextView, in conjunction with NSLayoutManager, is rather eager to get the text to re-layout. Maybe, to disable layout, set the textview's textContainer to nil, then restore it to enable layout? That's one idea, though I wouldn't b

To make an application start everytime when another program starts

2010-09-23 Thread eveningnick eveningnick
Hello! I have written an application, that interacts with another "stranger"-program by Applescript. The problem is that i need my application to look like a plugin for "stranger program"- to display a panel, and to be launched automatically when the Master-program starts (and to finish, when the m

Re: Cocoa Text System - Temporarily Disabling Layout

2010-09-23 Thread Ross Carter
Maybe, to disable layout, set the textview's textContainer to nil, then restore it to enable layout? On Sep 23, 2010, at 7:54 AM, Jonathan Dann wrote: > Hi all, > > In our app, Kaleidoscope, I have 2 text views side-by-side. In one > configuration the layout of the text in each text view is d

Re: NSSplitView

2010-09-23 Thread Fritz Anderson
On 23 Sep 2010, at 2:40 PM, k...@highrolls.net wrote: > Is there a way to send a mouse click to an NSSplitView like -performClick for > a NSControl? What are you hoping to accomplish? Split views don't (aren't semantically supposed to) do anything when you just click them. There's nothing for t

Re: NSSplitView

2010-09-23 Thread koko
No, which is why I asked in the first place. 2010-09-23 14:12:25.784 Convert It Mac[2638:813] *** -[RightVertSplit performClick:]: unrecognized selector sent to instance 0x1154230 -koko On Sep 23, 2010, at 1:43 PM, Shawn Bakhtiar wrote: NSSplitView is derived from NSResponder, so the answ

RE: NSSplitView

2010-09-23 Thread Shawn Bakhtiar
NSSplitView is derived from NSResponder, so the answer is yes, it should have all the same functionality as an NSControl. > From: k...@highrolls.net > To: cocoa-dev@lists.apple.com > Date: Thu, 23 Sep 2010 13:40:41 -0600 > Subject: NSSplitView > > Is there a way to send a mouse click to an NS

NSSplitView

2010-09-23 Thread koko
Is there a way to send a mouse click to an NSSplitView like - performClick for a NSControl? -koko ___ 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 co

RE: php and cocoa

2010-09-23 Thread Shawn Bakhtiar
Maybe these guys can help Looks like they have done most of the work, and they offer the source https://opensvn.csie.org/traccgi/WiredBot/wiki > From: d...@chancofamily.com > Date: Mon, 20 Sep 2010 12:32:12 -0400 > To: cocoa-dev@lists.apple.com > Subject: php and cocoa > > For those on

Question in regards to UITableView

2010-09-23 Thread Eric E. Dolecki
I have a view that contains a UITableView. It does not take up the full view (320x480). When an item is selected, the thing is supposed to slide to the left and bring in a new table in it's place. Other items in the main view do not change... so I can't use a UINavigationController (I don't believe

Re: Accessing NSDistantObject from different threads concurrently

2010-09-23 Thread Oleg Krupnov
So, how do I implement multiple threads in the server process? I have the following idea: Vend many objects. First, vend a root object in the server process and then have it create new server threads by client request and return a connection name to the client. The new server thread creates a con

Re: NSTableView display issue

2010-09-23 Thread Kyle Sluder
On Sep 23, 2010, at 12:39 AM, "Rufat A. Abdullayev" wrote: > Hi Koko > > > I had the same problems (just without using NSSplitView) there I had extra > controls dynamically created on a standard UITableViewCell (cells updated > after scrolling tableview) > > The problem gone when I created c

NSTextView/Field to relinquish firstResponder after return key

2010-09-23 Thread Russ
The desired behavior is that when the user hits the return key after editing the contents of a NSTextView (replaced by NSTextField during editing), the firstResponder should be cleared and set to the overall window, with the text field no longer editing. Instead, the text field becomes fully s

Re: cool way to call super?

2010-09-23 Thread Jonathan Dann
On 23 Sep 2010, at 16:45, Matt Neuburg wrote: > Is there a cool dynamic Cocoa way to call super with the same parameters > that came to me? I guess what I'm looking for is a pre-configured invocation > of the current command where I can just change the target to super. No big > deal, but I just w

Re: cool way to call super?

2010-09-23 Thread Ken Thomases
On Sep 23, 2010, at 9:45 AM, Matt Neuburg wrote: > Is there a cool dynamic Cocoa way to call super with the same parameters > that came to me? Nope. > I guess what I'm looking for is a pre-configured invocation > of the current command where I can just change the target to super. Super isn't an

Cocoa Text System - Temporarily Disabling Layout

2010-09-23 Thread Jonathan Dann
Hi all, In our app, Kaleidoscope, I have 2 text views side-by-side. In one configuration the layout of the text in each text view is dependent both on regions of layout in the "sibling" text view, and the model objects which represent the the insert, equal and deleted regions of the diff. The

cool way to call super?

2010-09-23 Thread Matt Neuburg
Is there a cool dynamic Cocoa way to call super with the same parameters that came to me? I guess what I'm looking for is a pre-configured invocation of the current command where I can just change the target to super. No big deal, but I just wondered, since Cocoa is cool and dynamic. m. -- matt n

Re: NSURLConnection sync vs async connections

2010-09-23 Thread Jerry Krinock
On 2010 Sep 23, at 02:21, Devraj Mukherjee wrote: > Previous version I used NSURLConnection to make synchronous calls to > the API, parsing the data and then returning results. Only problem of > course is that my API client had to be used in threads so the UI > didn't get locked up while the requ

Re: [ANN] Release: NanoStore 1.0 for Mac and iOS

2010-09-23 Thread Tito Ciuro
Hi Chris, On 23/09/2010, at 04:27, Chris Hanson wrote: > On Sep 22, 2010, at 11:39 PM, Tito Ciuro wrote: > >> I believe (please correct me if I'm wrong) that Core Data stores the data >> atomically for both, XML and binary formats. That, if I'm not mistaken >> requires the datafile to be read

Re: [ANN] Release: NanoStore 1.0 for Mac and iOS

2010-09-23 Thread Tito Ciuro
Hi Thomas, On 23/09/2010, at 04:19, Thomas Davie wrote: > > On 23 Sep 2010, at 07:39, Tito Ciuro wrote: > >> Hm. That would be discussed better on a White Paper or similar. There are >> countless tutorials and documents about Core Data already. What I can do >> however is to provide a small e

Re: NSURLConnection sync vs async connections

2010-09-23 Thread Ken Thomases
On Sep 23, 2010, at 4:21 AM, Devraj Mukherjee wrote: > Previous version I used NSURLConnection to make synchronous calls to > the API > I would like to move towards using async requests. I can grab / parse > the data using the delegate methods, what I am struggling with is how > I return the data

Re: [ANN] Release: NanoStore 1.0 for Mac and iOS

2010-09-23 Thread Jerry Krinock
On 2010 Sep 22, at 22:15, Thomas Davie wrote: > some of the differences between using this or using CoreData to achieve a > similar thing? An important feature of Core Data is support for Undo, although it is raw and still takes some doing to beat Undo grouping and Undo action names into subm

Re: NSTimer memory management

2010-09-23 Thread Gregory Weston
slasktrattena...@gmail.com wrote: > Is this an over-release? > > timer = [ [NSTimer scheduledTimerWithTimeInterval: ...] retain]; > ... > [timer invalidate]; > [timer release]; Seems fine, although based on

CGDisplayChangeSummaryFlags

2010-09-23 Thread Trygve Inda
In my DisplayReconfigurationCallBack, the CGDisplayChangeSummaryFlags has bit 13 set when the GPU changes on an i5/i7 Mac. Only bits 0-12 are defined in the header. Is this documented anywhere else? During a GPU switch I get: 1st: 8478 kCGDisplayMovedFlag kCGDisplaySetMainFlag

NSURLConnection sync vs async connections

2010-09-23 Thread Devraj Mukherjee
Hi all, I am the maintainer of EtsyCocoa (http://etsycocoa.googlecode.com), its a Cocoa client library for Etsy.com's REST API. I am in the process of re-writing the API client seeing they have released v2 of their API. Previous version I used NSURLConnection to make synchronous calls to the API,

Tooltip flickers and disappear.

2010-09-23 Thread Vijay Malhan
Hi, In an application I am developing, complete App wide tooltips start to misbehave after some time (not able to reproduce the exact steps). The tooltips flicker and then disappear. This also gets randomly fixed (no specific steps). This is happening in both in Mac OS X Leopard and Snow Leopard.

Re: Ports for stringWithContentsOfURL

2010-09-23 Thread gMail.com
Hi Andy, thank you. Yes, I use stringWithContentsOfURL:encoding:error: and my clients trapped the error. The [error localizedDescription] says it can't reach the file "http//www.mywebsite.com/abc.txt" while on my machine/office I can. The [[error userInfo] objectForKey:@"NSUnderlyingError"] locali

RE: NSTableView display issue

2010-09-23 Thread Rufat A. Abdullayev
Hi Koko I had the same problems (just without using NSSplitView) there I had extra controls dynamically created on a standard UITableViewCell (cells updated after scrolling tableview) The problem gone when I created custom UITableViewCell and build it in IB with needed controls (did KVO comp

Re: [ANN] Release: NanoStore 1.0 for Mac and iOS

2010-09-23 Thread Chris Hanson
On Sep 22, 2010, at 11:39 PM, Tito Ciuro wrote: > I believe (please correct me if I'm wrong) that Core Data stores the data > atomically for both, XML and binary formats. That, if I'm not mistaken > requires the datafile to be read in memory. Not so with NanoStore: Not really so with Core Data

Re: [ANN] Release: NanoStore 1.0 for Mac and iOS

2010-09-23 Thread Thomas Davie
On 23 Sep 2010, at 07:39, Tito Ciuro wrote: > Hm. That would be discussed better on a White Paper or similar. There are > countless tutorials and documents about Core Data already. What I can do > however is to provide a small example to illustrate how NanoStore works. > > I believe (please co