Re: subclassing with conditional method overriding

2009-09-05 Thread jonat...@mugginsoft.com
bscription: http://lists.apple.com/mailman/options/cocoa-dev/jonathan%40mugginsoft.com This email sent to jonat...@mugginsoft.com Jonathan Mitchell Developer http://www.mugginsoft.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please d

Re: [[NSHost currentHost] name] blocking on 10.6 ?

2009-09-08 Thread jonat...@mugginsoft.com
On 8 Sep 2009, at 22:24, Jens Alfke wrote: On Sep 8, 2009, at 1:15 PM, jonat...@mugginsoft.com wrote: I am not sure if this is a problem unique to me or not but under 10.5 [[NSHost currentHost] name] or [[[NSProcessInfo] processInfo] hostname] were quick and easy ways to get an mDNS

Re: [[NSHost currentHost] name] blocking on 10.6 ?

2009-09-08 Thread jonat...@mugginsoft.com
On 8 Sep 2009, at 22:37, Jean-Daniel Dupas wrote: Le 8 sept. 2009 à 22:15, jonat...@mugginsoft.com a écrit : I am not sure if this is a problem unique to me or not but under 10.5 [[NSHost currentHost] name] or [[[NSProcessInfo] processInfo] hostname] were quick and easy ways to get an

[[NSHost currentHost] name] blocking on 10.6 ?

2009-09-08 Thread jonat...@mugginsoft.com
I am not sure if this is a problem unique to me or not but under 10.5 [[NSHost currentHost] name] or [[[NSProcessInfo] processInfo] hostname] were quick and easy ways to get an mDNS friendly hostname such as imac-2.local On 10.6 I find that both these combinations block badly (NSProcessInfo

Re: [[NSHost currentHost] name] blocking on 10.6 ?

2009-09-08 Thread jonat...@mugginsoft.com
[NSHost currentHost]. Not making any judgements, just relating my (now somewhat fuzzy) experience. On Tue, Sep 8, 2009 at 4:15 PM, jonat...@mugginsoft.com > wrote: I am not sure if this is a problem unique to me or not but under 10.5 [[NSHost currentHost] name] or [[[NSProcessInfo] proces

Re: Help book content

2009-09-14 Thread jonat...@mugginsoft.com
ists.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: http://lists.apple.com/mailman/options/cocoa-dev/jonathan%40mugginsoft.com This email sent to jonat...@

Re: Using libcrypto & the 10.6 SDK with a minimum OS requirement of 10.5

2009-09-19 Thread jonat...@mugginsoft.com
On 19 Sep 2009, at 10:58, Jean-Daniel Dupas wrote: You should copy the libcrypto from the 10.5 SDK in your project and link your executable on this file. Note that you don't have to distribute this file, just putting it somewhere the linker can find it, so your executable will use the sys

Re: Subclassing NSUserDefaultsController

2009-09-20 Thread jonat...@mugginsoft.com
. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/jonathan%40mugginsoft.com This email sent to jonat...@mugginsoft.com Jonathan Mitchell Developer http://www.mugginsoft.com

Re: automatically send the email from code using NSWorkspace

2009-09-23 Thread jonat...@mugginsoft.com
moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/jonathan%40mugginsoft.com This email sent to jonat...@mugginsoft.com Jonathan Mitchell Developer http:/

Re: Sleep, NSWorkspaceWillSleepNotification, 30 seconds and the run loop

2009-09-30 Thread jonat...@mugginsoft.com
On 30 Sep 2009, at 20:57, Jens Alfke wrote: On Sep 30, 2009, at 9:59 AM, jonat...@mugginsoft.com wrote: Before entering sleep I would like to send small amounts of data via async instances of CFSocket to the local and some remote hosts. It's usually best to close open sockets ent

Re: Sleep, NSWorkspaceWillSleepNotification, 30 seconds and the run loop

2009-09-30 Thread jonat...@mugginsoft.com
Not sure though that having called IOCancelPowerChange(,) wether it can be revoked before the 30 secs are up. Perhaps a call to IOAllowPowerChange() will be effective. The above is garbled nonsense . I can achieve the desired goal by NOT calling either IOCancelPowerChange() or IOAllowPowe

Re: Sleep, NSWorkspaceWillSleepNotification, 30 seconds and the run loop

2009-10-02 Thread jonat...@mugginsoft.com
On 1 Oct 2009, at 22:09, Jens Alfke wrote: On Sep 30, 2009, at 1:32 PM, jonat...@mugginsoft.com wrote: I intend to send off my bit of data, hang around ( <= 30 secs) to get notification and then close everything. Why do you need to wait at all? —Jens Sorry the slow response. My

Re: Sleep, NSWorkspaceWillSleepNotification, 30 seconds and the run loop

2009-10-02 Thread jonat...@mugginsoft.com
On 2 Oct 2009, at 20:50, Jens Alfke wrote: On Oct 2, 2009, at 2:50 AM, jonat...@mugginsoft.com wrote: Seems that by the time I get the IOKit sleep notification my Bonjour service has already disconnected so my packets end up going nowhere anyway. How exactly is your Bonjour service

Re: Problem with OpenSSL header files

2009-10-12 Thread jonat...@mugginsoft.com
_ 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: http://lists.apple.com/mailman/options/cocoa-dev/jonathan%40

Re: Code Sign verification on Leopard

2009-10-13 Thread jonat...@mugginsoft.com
lot for your answer, Jakub ___ 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 Subscript

Re: Code Sign verification on Leopard

2009-10-13 Thread jonat...@mugginsoft.com
On 13 Oct 2009, at 16:41, Jens Alfke wrote: That's sort of useless for security purposes, like yelling downstairs "are you a burglar?" But it's not useless in the sense that it provides feedback that the code IS signed. The code merely allows me to detect if I have screwed up my build se

Re: Code Sign verification on Leopard

2009-10-13 Thread jonat...@mugginsoft.com
On 13 Oct 2009, at 19:28, Jens Alfke wrote: On Oct 13, 2009, at 9:25 AM, jonat...@mugginsoft.com wrote: But it's not useless in the sense that it provides feedback that the code IS signed. The code merely allows me to detect if I have screwed up my build settings and managed to

NSArrayController performance using NSManagedObject content on 10.6

2009-10-15 Thread jonat...@mugginsoft.com
I am using an array of simple NSManagedObject subclasses bound to an NSArrayController. The object graph is shallow with a tiny number of objects (<500). All objects are loaded into the NSArrayController MOC using an NSFetchRequest with setReturnsObjectsAsFaults:YES. Therefore no faulting

NSArrayController performance using NSManagedObject content on 10.6 (fixed typo)

2009-10-15 Thread jonat...@mugginsoft.com
The following is correct: All objects are loaded into the NSArrayController MOC using an NSFetchRequest with setReturnsObjectsAsFaults:NO. Jonathan Mitchell Developer http://www.mugginsoft.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Re: NSArrayController performance using NSManagedObject content on 10.6 [SOLVED]

2009-10-16 Thread jonat...@mugginsoft.com
solution is simply to ditch the un-modelled derived properties in favour of transient modelled properties. Core Data undo works and the self-self observation is redundant. On 15 Oct 2009, at 13:01, jonat...@mugginsoft.com wrote: I am using an array of simple NSManagedObject subclasses bound t

Re: IKImageBrowserView Dragging outside

2009-10-25 Thread jonat...@mugginsoft.com
populate the tableview with just the items to be dragged when the IKImageBrowserView drag begins. Just an idea. Might be tricky to pull off in practice. Regards Jonathan Mitchell Developer http://www.mugginsoft.com Tobias. On Oct 23, 2009, at 10:24 PM, jonat...@mugginsoft.com wrote: Tobi

Re: Alternative to stringWithContentsOfURL

2009-10-27 Thread jonat...@mugginsoft.com
(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: http://lists.apple.com/mailman/options/coco

Re: Should I learn CoreData for this project?

2009-11-04 Thread jonat...@mugginsoft.com
to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/jonathan%40mugginsoft.com This email sent to jonat...@mugginsoft.com ___ Cocoa-dev mail

Re: Cocoa HTML template engine?

2009-11-04 Thread jonat...@mugginsoft.com
pple.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: http://lists.apple.com/mailman/options/cocoa-dev/jonathan%40mugginsoft.com This email sent to jon

NSArrayController -addObjects and undo

2009-11-09 Thread jonat...@mugginsoft.com
My Entry objects are an NSManagedObject subclass. I create an NSArray of N Entries and add them to my array controller like so. [self.arrayController addObjects:newEntries]; I am observing [self.arrayController arrangedObjects] and receive a single observation following the above call. Ho

Re: NSArrayController -addObjects and undo - [improved but still confused]

2009-11-10 Thread jonat...@mugginsoft.com
On 9 Nov 2009, at 20:58, jonat...@mugginsoft.com wrote: > My Entry objects are an NSManagedObject subclass. > > I create an NSArray of N Entries and add them to my array controller like so. > [self.arrayController addObjects:newEntries]; > > I am observing [self.arrayControll

Re: NSArrayController -addObjects and undo - [improved but still confused]

2009-11-10 Thread jonat...@mugginsoft.com
On 10 Nov 2009, at 17:52, Quincey Morris wrote: > On Nov 10, 2009, at 05:16, jonat...@mugginsoft.com wrote: > >> On 9 Nov 2009, at 20:58, jonat...@mugginsoft.com wrote: >> >>> My Entry objects are an NSManagedObject subclass. >>> >>> I create an

Re: NSArrayController -addObjects and undo - [SOLVED]

2009-11-11 Thread jonat...@mugginsoft.com
On 10 Nov 2009, at 22:29, Quincey Morris wrote: > On Nov 10, 2009, at 14:08, jonat...@mugginsoft.com wrote: > >> I accept all of this except that when observing NSArrayController >> -arrangedObjects it seems that NSKeyValueChangeSetting is all you ever get, >> regardl

NSTableView and NSTextFieldCell redraw oddness when undo

2009-11-13 Thread jonat...@mugginsoft.com
I have a subclassed NSTextFieldCell to create a cell that draws outside of it's frame. This is to enable NSTableView rows to have one line of text that runs beneath several other cells. Bindings are utilised. This works fine except, curiously, when an operation is undone. In this case the cell o

Re: NSTableView and NSTextFieldCell redraw oddness when undo

2009-11-13 Thread jonat...@mugginsoft.com
On 13 Nov 2009, at 15:15, Corbin Dunn wrote: > > On Nov 13, 2009, at 6:35 AM, jonat...@mugginsoft.com wrote: > >> I have a subclassed NSTextFieldCell to create a cell that draws outside of >> it's frame. > > All the logic in tableview redraws things b

Re: NSTableView and NSTextFieldCell redraw oddness when undo

2009-11-13 Thread jonat...@mugginsoft.com
On 13 Nov 2009, at 17:02, Corbin Dunn wrote: > > On Nov 13, 2009, at 8:19 AM, jonat...@mugginsoft.com wrote: > >> >> On 13 Nov 2009, at 15:15, Corbin Dunn wrote: >> >>> >>> On Nov 13, 2009, at 6:35 AM, jonat...@mugginsoft.com wrote: >>>

Re: Bindings vs MOC change notification

2009-11-14 Thread jonat...@mugginsoft.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: > http://lists.apple.com/mailman/options/cocoa-dev/jonathan%40mugginsoft.com > > This email sent to

CoreData abstract entity migration issue

2009-11-22 Thread jonat...@mugginsoft.com
I have a very simple object model that contains, along with 4 or 5 others, an abstract entity. The app uses NSPersistentDocument. I have created a new model version that changes a transient property to a modelled property in an entity derived from the above abstract entity. I have created my map

NSPersistentDocument, Garbage Collection and SQL Store

2009-11-22 Thread jonat...@mugginsoft.com
Under 10.5.6 there were acknowledged issues with the magic combination of Core Data, Garbage Collection and NSPersistentDocument SQL Store. See http://lists.apple.com/archives/Cocoa-dev/2009/Feb/msg00176.html I cannot see a ref for this in the release notes for 10.6. Was the issue resolved in 10

Re: CoreData abstract entity migration issue

2009-11-23 Thread jonat...@mugginsoft.com
On 22 Nov 2009, at 21:59, Quincey Morris wrote: > On Nov 22, 2009, at 03:39, jonat...@mugginsoft.com wrote: > >> I have a very simple object model that contains, along with 4 or 5 others, >> an abstract entity. >> The app uses NSPersistentDocument. >> >> I h

Re: calling the run method in an AppleScript from a cocoa application

2010-03-12 Thread jonat...@mugginsoft.com
On 12 Mar 2010, at 16:56, David Alter wrote: > I need the ability to call an AppleScript from a Cocoa Application. I have > done this in the past using NSAppleScript and it works great. This time I > need to call the "on run" and pass in parameters. That I have not done. I > looked at the followi

CSS style string to NSAttributedString attributes conversion

2010-04-08 Thread jonat...@mugginsoft.com
I want to convert CSS style strings to NSAttributedString attributes. AppKit and WebKit don't seem to offer a solution. Does anyone know of any permissive licence third part code? Regards Jonathan Mitchell Developer http://www.mugginsoft.com __

Re: CSS style string to NSAttributedString attributes conversion

2010-04-09 Thread jonat...@mugginsoft.com
On 8 Apr 2010, at 17:19, Jens Alfke wrote: > > I'm not aware of anything that does this. > Are you talking about parsing entire CSS files, or just a single "property: > value;" rule? > Even the simple case isn't that simple; CSS can be pretty complex. And most > of the attributes don't map clea

Re: NSTableView Key Value Observing performance pickle

2010-04-09 Thread jonat...@mugginsoft.com
62 in -[NSApplication sendEvent:] > > > > > ___ > > 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

Cocoa scripting support - background helper app

2010-04-11 Thread jonat...@mugginsoft.com
My Cocoa app consists of GUI component and an agent foundation component in a conventional bundle. The agent can execute without the GUI to provide a network accessible service. I would like AppleScripts run by the foundation tool to be able to target a scriptable helper app. I would prefer NOT

Re: Cocoa scripting support - background helper app

2010-04-11 Thread jonat...@mugginsoft.com
On 11 Apr 2010, at 15:52, Bill Cheeseman wrote: > > On Apr 11, 2010, at 10:14 AM, jonat...@mugginsoft.com wrote: > >> My questions are: >> >> 1. Presumably I have to target a fully fledged application bundle and cannot >> somehow route my AE requests to the

Display AppleScript dictionary browser

2010-04-15 Thread jonat...@mugginsoft.com
My app currently allows the user to select and display an application AppleScript dictionary using the following undocumented call: [OSADictionary performSelector:@selector(chooseDictionary)] An app dictionary can be selected but the browser functionality is not fully functional. Searching for

Re: Simple question

2010-04-22 Thread jonat...@mugginsoft.com
On 22 Apr 2010, at 17:09, Graham Cox wrote: > > On 23/04/2010, at 1:59 AM, k...@highrolls.net wrote: > >> Try this: > > > Looks equally incorrect to me. The problem is that NSNumbers are not NUMBERS. > If the OP has prior experience with c++ and operator overloading then their confusion migh

HTML link tree browser OS component

2010-04-30 Thread jonat...@mugginsoft.com
Is anyone aware of a BSD like licensed component that provides a way of browsing a tree of supplied HTML links? Think: 1. xcode documentation browser style window. 2. tree of external links on the left - supplied as XML. 3. webkit view on the right. 4. search field searches site of currently dis

Re: AsyncUdpSocket: Receiving duplicate UDP Packet

2010-05-14 Thread jonat...@mugginsoft.com
On 13 May 2010, at 03:35, Todd Burch wrote: > Hi all, > > > Can anyone who's used AsyncUdpSocket before help out a beginner? Frustrated... Looking at the source for AsyncUdpSocket I would put a break point on - maybeCompleteCurrentReceive and see if this method is called multiple times. Rega

subclass overwriting superclass ivar

2010-05-26 Thread jonat...@mugginsoft.com
A subclass ivar is apparently overwriting a super class ivar. When an instance of MGS_B sets stderrData the super class ivar tempFilePath gets overwritten. Moving tempFilePath up the ivar list resolves the problem (though doubtless creates another). Moving ivar stderrData into the superclass als

Re: subclass overwriting superclass ivar

2010-05-26 Thread jonat...@mugginsoft.com
> There's nothing wrong with the ivar declarations - something must be > going wrong at run time. Typically, when an object pointer seems to > point to the wrong object, the prime suspect is memory management. But > it's hard to say for sure, without seeing the relevant code. The ivar decs look

Re: subclass overwriting superclass ivar

2010-05-26 Thread jonat...@mugginsoft.com
On 26 May 2010, at 13:55, Uli Kusterer wrote: > On May 26, 2010, at 1:40 PM, jonat...@mugginsoft.com wrote: >> A subclass ivar is apparently overwriting a super class ivar. >> When an instance of MGS_B sets stderrData the super class ivar tempFilePath >> gets overwritte

Re: subclass overwriting superclass ivar

2010-05-27 Thread jonat...@mugginsoft.com
On 26 May 2010, at 20:00, Greg Parker wrote: >> > > Mac or iPhone? > iPhone device or iPhone simulator? > 32-bit Mac or 64-bit Mac? > Sorry for the vagueness. 32 bit mac. > My guess is that (1) you're running on iPhone Simulator or 32-bit Mac, and > (2) you recently added an ivar to MGS_A bu

Re: subclass overwriting superclass ivar

2010-05-27 Thread jonat...@mugginsoft.com
On 27 May 2010, at 14:42, Jean-Daniel Dupas wrote: >> >> >> Is there no build support to help with these sorts of class dependencies? >> Or have I borked my build settings somewhere? > > > If MGS_B is a subclass of MGS_A , it must import the MGS_A header file (else > the compiler will complai

Re: Monster memory leak and I can't figure out why

2010-06-01 Thread jonat...@mugginsoft.com
} > > // make sure it worked > if ([manager fileExistsAtPath: thumbPath]) > return thumbPath; > else > return nil; > } > _______ > >

ANN: Syntax highlighting editor view

2010-06-02 Thread jonat...@mugginsoft.com
From time to time the issue of syntax highlighting/colouring is raised on the list. Fragaria is framework based on Smultron (now Fraise) that provides a simple way of embedding a syntax aware editor in an application. The project includes a simple demo application that illustrates how to embed

Re: ANN: Syntax highlighting editor view

2010-06-02 Thread jonat...@mugginsoft.com
ile mentions Apache, others don't. > > On Wed, Jun 2, 2010 at 12:53 PM, jonat...@mugginsoft.com > wrote: >> From time to time the issue of syntax highlighting/colouring is raised on >> the list. >> >> Fragaria is framework based on Smultron (now Fraise) that

Re: ANN: Syntax highlighting editor view

2010-06-02 Thread jonat...@mugginsoft.com
se it. http://arstechnica.com/old/content/2007/11/why-google-chose-the-apache-software-license-over-gplv2.ars Regards Jonathan Mitchell Developer Mugginsoft LLP http://www.mugginsoft.com > On 2 June 2010 13:20, jonat...@mugginsoft.com wrote: > Smultron was released under the Apache 2.0 licence

Access ObjC class from PyOBJC

2010-06-02 Thread jonat...@mugginsoft.com
My app is ObjC cocoa based It also loads and executes PyObjC classes. I require my loaded PyObjC code to access an ObjC class (myControllerClass) defined within an ObjC framework linked to the main application. The desired Python looks something like: #py import AppKit taskController = myCon

Re: Access ObjC class from PyOBJC

2010-06-02 Thread jonat...@mugginsoft.com
On 2 Jun 2010, at 22:24, Bill Bumgarner wrote: > > On Jun 2, 2010, at 2:16 PM, jonat...@mugginsoft.com wrote: > >> My app is ObjC cocoa based >> >> It also loads and executes PyObjC classes. >> >> I require my loaded PyObjC code to access an ObjC class

va_list and unanticipated format specifiers

2010-06-03 Thread jonat...@mugginsoft.com
One of my logging methods uses a variable argument list and is accessed via a macro #define MLog(level,s,...) [[MLog sharedController] withLevel:level sourceFile:__FILE__ lineNumber:__LINE__ format:(s),## __VA_ARGS__] The method implementation retrieves the va_list and instantiates an NSString

Re: va_list and unanticipated format specifiers

2010-06-03 Thread jonat...@mugginsoft.com
On 3 Jun 2010, at 14:20, Ken Thomases wrote: > >> With the va_list we don't know the number of items. >> With the format spec we don't know which of the format specifiers are >> unanticipated. > > Again, what constitutes "unanticipated" for a format specifier? If there's > something like "%@

Re: va_list and unanticipated format specifiers

2010-06-04 Thread jonat...@mugginsoft.com
On 4 Jun 2010, at 00:49, Ken Thomases wrote: > On Jun 3, 2010, at 8:46 AM, jonat...@mugginsoft.com wrote: > >> My app runs user supplied scripts. >> >> These scripts may contain RubyCocoa statements such as: >> OSX::NSLog("task parameters are %@ and %@"

Class OC_PythonObject: no such selector: _cfTypeID

2010-06-04 Thread jonat...@mugginsoft.com
On occasion I see my PyObjC scripts generating the following: Class OC_PythonObject: no such selector: _cfTypeID My app executes user supplied scripts and the error appears to be generated under a number of circumstances including inadvertently calling an object function with the wrong number o

Re: Class OC_PythonObject: no such selector: _cfTypeID

2010-06-04 Thread jonat...@mugginsoft.com
Hi Hamish On 4 Jun 2010, at 20:40, has wrote: > Jonathan Mitchell wrote: > >> On occasion I see my PyObjC scripts generating the following: >> >> Class OC_PythonObject: no such selector: _cfTypeID >> >> My app executes user supplied scripts and the error appears to be generated >> under a num

Re: va_list and unanticipated format specifiers

2010-06-04 Thread jonat...@mugginsoft.com
On 4 Jun 2010, at 22:22, Ken Thomases wrote: > > The compiler will actually find this for you. Enabling -Wformat (which is > included in -Wall) issues warnings for functions and methods that take format > strings if you supply a non-literal format argument and no arguments. If you > supply

Re: Debugging sporadic crashes

2010-06-07 Thread jonat...@mugginsoft.com
On 7 Jun 2010, at 15:39, Gabriel Zachmann wrote: > > All kinds of suggestions, insights, and tips will be highly appreciated. > Have you sampled your app extensively? If not I would suggest getting to know Shark. Regards Jonathan Mitchell Developer Mugginsoft LLP http://www.mugginsoft.com _

Re: NSArrayController/Modal dialog/KVO Gordian knot

2010-06-12 Thread jonat...@mugginsoft.com
tors at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/jonathan%40mugginsoft.com > > This email sent to jonat...@mugginsoft.com ___ Cocoa-dev maili

Re: NSArrayController/Modal dialog/KVO Gordian knot

2010-06-12 Thread jonat...@mugginsoft.com
On 12 Jun 2010, at 11:45, vincent wrote: > Le 12 juin 2010 à 12:28, jonat...@mugginsoft.com a écrit : > >> Modal windows fulfil a very specific purpose and manipulate the runloop >> accordingly. > > It seems some events are postponed (like timer or notifications) and

Re: NSControl objects on a custom view

2010-06-14 Thread jonat...@mugginsoft.com
or e-mail to and from our network. > > NSS nv Tieltstraat 167 8740 Pittem Belgium > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators

Re: NSControl objects on a custom view

2010-06-14 Thread jonat...@mugginsoft.com
On 14 Jun 2010, at 12:28, Florian Soenens wrote: > Then my NSTextField is a subview of my custom view but still displays with a > background, that's the behavior i don't want. > Can this be fixed somehow? > > On 14 Jun 2010, at 12:03, jonat...@mugginsoft.com wrote: &g

Re: NSControl objects on a custom view

2010-06-14 Thread jonat...@mugginsoft.com
On 14 Jun 2010, at 13:02, Florian Soenens wrote: > That's what i thought at first, but i seem to fill the whole [self bounds] > with the gradient. > On a sidenote, if i put a custom NSSearchfield onto my custom gradient view, > the behavior is more obvious then with a default NSSearchfield, am

Re: Adding attributes to NSMutableAttributedString

2010-06-14 Thread jonat...@mugginsoft.com
om) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/jonathan%40mugginsoft.com > > This email se

Re: Locating Frameworks

2010-06-15 Thread jonat...@mugginsoft.com
a-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: > http://lists.apple.com/mailman/options/cocoa-de

Re: NSDatepicker inside a TableViewColumn

2010-06-19 Thread jonat...@mugginsoft.com
On 19 Jun 2010, at 19:46, Junio Gonçalves Vitorino wrote: > Hello, I'm working on a project that the user should fill columns of a > tableview (that maps to a coredata entity) with dates. After googling I > found some posts saying that is impossible to place a NSDatepicker inside a > TableViewCol

Re: Getting Computer Name

2010-06-20 Thread jonat...@mugginsoft.com
On 20 Jun 2010, at 11:10, Steve Steinitz wrote: > > > According to the docs CFStringRef is toll-free-bridged with NSString and so > interchangeable. The authors of the examples cite no issues. Could I have > done something to my project to break toll-free bridging? I confess, I > haven't t

Re: Getting Computer Name

2010-06-20 Thread jonat...@mugginsoft.com
On 20 Jun 2010, at 14:46, Steve Steinitz wrote: > Hi Paul, > > On 20/6/10, Paul Sanders wrote: > Are you #including ? >> >>> I wasn't. I added it. Were you wondering if it would make a difference? The correct import is #import . Omitting it causes the compiler to assume integer return

Re: NewStyle Preferences

2010-06-20 Thread jonat...@mugginsoft.com
On 20 Jun 2010, at 22:53, Jeremy Matthews wrote: > > 1) Tabless NSTabView using a Toolbar with actions (selectTabViewItem:Blah) > 2) Some third-party frameworks and code (BWToolkit - buggy, > SS_PrefsController, DBPrefsWindowController, etc) > 3) Private APIs from Apple (NSPrefernces) > 4) Toolb

Re: NSAllocateCollectable memory allocation problem

2010-06-21 Thread jonat...@mugginsoft.com
On 21 Jun 2010, at 13:06, julius wrote: > Hi, > I am running XCode 3.2.2 with Garbage Collection required. > Something strange is happening with NSAllocateCollectable. > I am hoping someone will instantly recognise the symptoms and tell me what > I'm doing wrong. > .. > > Note that other vari

Re: docs, KVO and NSUserDefaults etc.

2010-06-21 Thread jonat...@mugginsoft.com
On 21 Jun 2010, at 18:28, Matt Neuburg wrote: > On the one hand, Apple seems to warn in some documents that one should not > assume KVO-compliance unless explicitly asserted. On the other, KVO is far > more widely implemented in the built-in classes than is explicitly asserted. > Experimentation

Re: Auto-hide the window

2010-06-23 Thread jonat...@mugginsoft.com
On 23 Jun 2010, at 04:03, Dong Linlan wrote: > Hi there, I want to make my window make my window auto-hided and when the > cursor move to the edge of the screen it will show. Just like the effect of > QuickSilver's Shelf plugin. I google and found nothing useful. Should I run > my app as an daem

Re: File descriptors not freed up without a -closeFile call

2010-06-23 Thread jonat...@mugginsoft.com
an Mitchell Developer Mugginsoft LLP http://www.mugginsoft.com > Ben Haller > McGill University > > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or mod

Re: -enclosingScrollView returns nil when receiver is a descendant of the clip view

2010-06-23 Thread jonat...@mugginsoft.com
On 23 Jun 2010, at 19:50, Kyle Sluder wrote: > > To describe it a bit more visually, here's a diagram of our view hierarchy: > > Scroll View > |- Clip View > |- Accessory view > |- Document view > > Calling -enclosingScrollView on the accessory view returns nil. I > believe that it should ret

Re: Restoring a NSTreeController selection

2010-06-24 Thread jonat...@mugginsoft.com
On 24 Jun 2010, at 01:43, Markus Spoettl wrote: > Hi List, > > I have a NSOutlineView bound to a NSTreeController that delivers my model > objects. That NSTreeController sorts the model objects through sort > descriptors. What I would like to do is save the current selection and > restore i

Re: Restoring a NSTreeController selection

2010-06-24 Thread jonat...@mugginsoft.com
On 24 Jun 2010, at 09:56, Keith Duncan wrote: > > On 24 Jun 2010, at 09:35, jonat...@mugginsoft.com wrote: > >> 1. NSTreeController items are subclasses of NSTreeNode (see the 10.5 release >> notes). > > This isn't strictly true, from the docs: > > &

Re: Restoring a NSTreeController selection

2010-06-25 Thread jonat...@mugginsoft.com
On 25 Jun 2010, at 08:12, Scott Anguish wrote: >> >> I was deterred to do this after reading this in the documentation for >> -arrangedObjects >> >> - >> Special Considerations >> Prior to Mac OS X v10.5 this method returned an opaque root node >> representing all the currently displayed o

Re: How tell tell if an NSNumber was initialized from a float or int?

2010-06-26 Thread jonat...@mugginsoft.com
On 26 Jun 2010, at 19:51, Quincey Morris wrote: > On Jun 26, 2010, at 10:52, Kyle Sluder wrote: > >> On Jun 26, 2010, at 9:45 AM, Jaime Magiera wrote: >> >>> Hello, >>> >>> The list search keeps timing out for me, and web searches are not finding >>> anything. I can see how to tell if an NSN

Re: Detecting 'nop' clicks on an NSPopUpButton?

2010-07-10 Thread jonat...@mugginsoft.com
On 9 Jul 2010, at 20:14, Sean McBride wrote: > Hi all, > > If the user clicks a popup button and reselects the existing selection, > the button still sends its action. I'd like to treat that as a nop. > > Is there a way to detect, from my action method, that the new selection > is the same as

NSAttributedString -initWithPath RTFD crash on Lion

2011-08-01 Thread jonat...@mugginsoft.com
On OS X 10.7 the following is crashing on occasion in a GC app when the path contains an RTFD document: On SL the issue does not occur. NSAttributedString *atext = [[NSAttributedString alloc] initWithPath:Path documentAttributes:NULL]; The kernel log states: 01/08/2011 09:44:29.000 kernel: Dat

Re: NSAttributedString -initWithPath RTFD crash on Lion

2011-08-01 Thread jonat...@mugginsoft.com
On 1 Aug 2011, at 20:48, Martin Wierschin wrote: > I don't have any advice on the actual crash, but: > >> The following workaround seems reliable: >> >> // get path to rtf file >> NSString *filePath = [path stringByAppendingPathComponent:@"TXT.rtf"]; > > Be aware that would probably miss any i

Re: quick look question

2011-08-02 Thread jonat...@mugginsoft.com
On 2 Aug 2011, at 11:39, Rick C. wrote: > Hi all, > > I want to include this feature in my app and the way I want it to work is if > a user selects a file in my table view and clicks a button it will open that > file in a quick look panel just the way it works in Finder. Actually if > there

Re: NSCoding to/from JSON?

2011-08-09 Thread jonat...@mugginsoft.com
On 8 Aug 2011, at 17:56, Jens Alfke wrote: > Been thinking about archiving NSObjects to/from JSON, using an API similar to > NSCoding. I haven’t found any prior art, but I thought I’d ask here. > > I am not talking about serializing JSON to/from collection objects a la > TouchJSON, JSONKit, e

Re: NSCache objects not being collected under GC?

2011-08-19 Thread jonat...@mugginsoft.com
On 19 Aug 2011, at 03:26, Nick Zitzmann wrote: > Short version: Have any of you ever used NSCache in a GC-enabled app? If so, > then how did you get the garbage collector to collect them? > > Long version: I have a framework that is used in a traditional retain-release > app and a different GC

Crash using NSOpenPanel TFSVolumeInfo::GetSyncGCDQueue

2011-08-22 Thread jonat...@mugginsoft.com
>From time to time I experience the following crash when displaying NSOpenPanel >on Lion in a GC app. It has prior form according to http://www.cocoabuilder.com/archive/cocoa/283840-odd-crash.html Does anyone have any recent insight into this one? Thread 5 Crashed:: Dispatch queue: TFSVolumeInf

Re: Crash using NSOpenPanel TFSVolumeInfo::GetSyncGCDQueue[SOLVED]

2011-08-25 Thread jonat...@mugginsoft.com
On 22 Aug 2011, at 08:30, jonat...@mugginsoft.com wrote: > From time to time I experience the following crash when displaying > NSOpenPanel on Lion in a GC app. > It has prior form according to > http://www.cocoabuilder.com/archive/cocoa/283840-odd-crash.html > > Does anyo

Re: Possible causes of "attempted layout while textStorage is editing"?

2011-09-01 Thread jonat...@mugginsoft.com
On 1 Sep 2011, at 07:08, Gideon King wrote: > Here is the complete stack trace > > 2011-08-31 15:25:11 -0400[5]: ERROR - 14764064ms (NMApplication.m:81) > -[NMApplication handleRunException:] - NSException Exception encountered: > -[AAMainEditingLayoutManager > _fillLayoutHoleForCharacterRang

Re: Knowing when font panel is visible

2011-09-04 Thread jonat...@mugginsoft.com
On 4 Sep 2011, at 08:40, Antonio Nunes wrote: > I tried subclassing NSFontPanel by doing the following: > > - (void)applicationWillFinishLaunching:(NSNotification *)aNotification > { > [NSFontManager setFontPanelFactory:[MY_FontPanel class]]; > } > > but it doesn't appear to work. The fon

Re: Window closes on its own

2011-09-06 Thread jonat...@mugginsoft.com
On 5 Sep 2011, at 21:25, Alexander Reichstadt wrote: > I can't due to using the garbage collection. > > Am 05.09.2011 um 20:47 schrieb Jens Alfke: > >> >> On Sep 5, 2011, at 12:08 AM, Alexander Reichstadt wrote: >> >>> the window created through the following code closes on its own after one

Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?

2011-09-06 Thread jonat...@mugginsoft.com
On 6 Sep 2011, at 19:47, Jens Alfke wrote: > Linking against the 10.6 libraries is the correct behavior if the app hasn’t > been fully updated to use 10.7 features/behaviors. There are a lot of cases > where a system framework will change its behavior based on which version the > app linked ag

Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?

2011-09-06 Thread jonat...@mugginsoft.com
On 6 Sep 2011, at 22:11, Kyle Sluder wrote: > On Tue, Sep 6, 2011 at 1:55 PM, jonat...@mugginsoft.com > >> My understanding is that the SDK frameworks are there to provide feedback >> during the linking that is performed as part of the build. >> When the app is actuall

Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?

2011-09-06 Thread jonat...@mugginsoft.com
On 6 Sep 2011, at 22:17, Jens Alfke wrote: > > On Sep 6, 2011, at 1:55 PM, jonat...@mugginsoft.com wrote: > >> Surely the choice of SDK normally only has an effect at build time. >> My understanding is that the SDK frameworks are there to provide feedback >>

Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?

2011-09-06 Thread jonat...@mugginsoft.com
On 6 Sep 2011, at 22:41, Greg Parker wrote: > On Sep 6, 2011, at 2:34 PM, jonat...@mugginsoft.com wrote: >> On 6 Sep 2011, at 22:11, Kyle Sluder wrote: >>> On Tue, Sep 6, 2011 at 1:55 PM, jonat...@mugginsoft.com >>>> To me this means that a framework will ma

Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?

2011-09-06 Thread jonat...@mugginsoft.com
On 6 Sep 2011, at 22:41, Kyle Sluder wrote: > On Tue, Sep 6, 2011 at 2:34 PM, jonat...@mugginsoft.com > wrote: >> On 6 Sep 2011, at 22:11, Kyle Sluder wrote: >>> Framework versions haven't been used since the OpenStep days. >> Really? >> It is still doc

Re: SecKeyRef object without KeyChain

2011-09-07 Thread jonat...@mugginsoft.com
On 7 Sep 2011, at 21:50, Jens Alfke wrote: > > >> Not sure if the doc below will help or not (it's fairly recent). >> http://developer.apple.com/library/mac/#documentation/Security/Conceptual/SecTransformPG/EncryptionandDecryption/EncryptionandDecryption.html > > Unfortunately it’s for Mac, no

  1   2   3   4   5   >