Re: [Moderator] No iPhone SDK discussion here please

2008-03-08 Thread mmalc crawford
On Mar 7, 2008, at 10:22 PM, Scott Anguish wrote: Items specifically discussed in the announcement are public. But even still, they're not appropriate for discussion on this list. Perhaps it's worth reminding all of and the feedback forms at the bottom of the

Glyph Generator & hiding glyphs -> _NSBlockNumberForIndex() errors

2008-03-08 Thread Keith Blount
Hi, I have a custom glyph generator (NSGlyphGenerator subclass) that is used to hide glyphs for text with certain attributes. It does this by inserting a single NSNullGlyph for a range of glyphs representing text with these hidden attributes. (This is basically a hidden text toggle.) This all w

dynamic Application menu text

2008-03-08 Thread Robert Spychala
Hi All, Is there a way to dynamically set the Application menu text and the Dock hover text? The Application menu text comes from CFBundleName and the Dock hover (and about menu text) is from the Nib. I'd like for these to be keyed from a central location during application load. What is the ri

Re: [SOLVED] Re: Getting the "iCal" window style?

2008-03-08 Thread William Squires
Is the new iPhone SDK now "fair game" on this list? On Mar 3, 2008, at 11:02 PM, Nick Zitzmann wrote: On Mar 3, 2008, at 9:54 PM, Ken Ferry wrote: The 'lighter gradient' you're after is the top gradient being repeated at the bottom. Thank you. Doing the following worked: 1. Turning off

IB3 Application vs File Owner

2008-03-08 Thread Trygve Inda
In IB 2 there was only a File's Owner and First Responder and one typically made an AppController object as a subclass of NSObject and made it a delegate of File's Owner. IB3 has added an NSApplication object. How does this work... It seems if my AppController is still the delegate of the File's O

Re: GNUStep, OpenStep, NextStep, Cocoa port?

2008-03-08 Thread C Sandeep
I have used GNUStep in the past. This: http://wiki.gnustep.org/index.php/Writing_portable_code might help you. - Sandeep On Sat, Mar 8, 2008 at 2:20 AM, William Zumwalt <[EMAIL PROTECTED]> wrote: > Anyone have any experience trying to port a Cocoa XCode app to linux? Are > the GnuStep or OpenSte

Re: [SOLVED] Re: Getting the "iCal" window style?

2008-03-08 Thread Jean-Daniel Dupas
What did you don't understand in this moderator post ? http://www.cocoabuilder.com/archive/message/cocoa/2008/3/8/200765 "Reposting this just to be crystal clear. iPhone 2.0 SDK is entirely covered by NDA, including the documentation. All of it requires login to access it at the iPhone Dev C

Post notification among several nib files?

2008-03-08 Thread Scott.D.R
Greetings, everyone. I create a NSWindowController to manage my application preferences. I want the application to respond to the option change when occurred. The problem is: my AppController which handle the change is placed in the MainMenu.Nib, my WindowController load another Nib file named

Re: IB3 Application vs File Owner

2008-03-08 Thread Quincey Morris
On Mar 8, 2008, at 06:54, Trygve Inda wrote: IB3 has added an NSApplication object. How does this work... It seems if my AppController is still the delegate of the File's Owner that the specific instance of NSApplication is not needed Since it is created at run time anyway. It's a p

Re: Post notification among several nib files?

2008-03-08 Thread Torsten Curdt
Have a look into NSNotificationCenter. That should do the trick. cheers -- Torsten On 09.03.2008, at 01:09, Scott.D.R wrote: Greetings, everyone. I create a NSWindowController to manage my application preferences. I want the application to respond to the option change when occurred. The pro

Re: GNUStep, OpenStep, NextStep, Cocoa port?

2008-03-08 Thread Jiva DeVoe
I've done a lot of looking into this. The results are: If its a command line app that uses foundation only, its very easy. In fact I'd go so far as to say GNUstep is a viable Objective C version of the C++ standard library in terms of portability. Note: apple is even working on releasing th

Core Data and indexed attributes question (from a CD noobie)

2008-03-08 Thread David Hoerl
I cannot find nothing in the Xcode user documentation, the Core Data documentation, nor on this list that explain what the "Indexed" checkbox in Xcode 3's Attribute panel is for. A link or short explanation would be helpful. Thanks! David ___ Cocoa

[NSTableView/NSOutlineView] How can we draw a custom border?

2008-03-08 Thread Stephane Sudre
I would like to draw a custom dashed border for a specific NSOutlineView (*). I sub-classed NSScrollView to do this. The problem is that the NSTableHeaderView is drawn after and over the NSScrollView. And so the topline of the NSTableHeaderView is drawn over my nice dashed line. I'm looki

Re: Binding NSTabViews in NSCollectionViews?

2008-03-08 Thread Emilien Huet
Was the problem solved? I am having the exact same problem here, the contents of inactive tabs of an NSTabView (using bindings for Selected Index) embedded in an NSCollectionView don't work as expected Cheers On Dec 3, 2007, at 2:47 PM, David Carlisle wrote: > I can see that your simple dem

Re: IB3 Application vs File Owner

2008-03-08 Thread Julien Jalon
NSApplication shared instance is now available in all NIB files in IB3. It's there for convenience. File's owner is the object loading the nib. In general, it is NSApp only for MainMenu.nib (the first NIB to be loaded). In that NIB, both objects designate the same instance. -- Julien Sen

Core Data Exception: NSTemporaryObjectID_default

2008-03-08 Thread Stefan Mueller
Hello I think I've stumbled on a rare Core Data exception. I'm working with two threads, each with its own context, but shared coordinator. When I try to save the data generated in the background thread, I occasionally get the exception. It's also very difficult to debug, since I can't repro

RE: Glyph Generator & hiding glyphs -> _NSBlockNumberForIndex() errors

2008-03-08 Thread Keith Blount
Just to add a little info to my previous message, which was a little misleading:a My custom glyph generator replaces each glyph that is supposed to be hidden with NSNullGlyph (it doesn't just insert one NSNullGlyph for the lot of them), so I would expect the one-to-one mapping on this first pas

Re: Post notification among several nib files?

2008-03-08 Thread Kyle Sluder
On Sat, Mar 8, 2008 at 7:09 PM, Scott.D.R <[EMAIL PROTECTED]> wrote: > Because it seems impossible to post a notification > from an object in a Nib file to another object in another Nib file. > I am wondering how to accomplish these: Notifications aren't posted directly to interested objects...

Re: IB3 Application vs File Owner

2008-03-08 Thread Kyle Sluder
On Sat, Mar 8, 2008 at 11:27 AM, Quincey Morris <[EMAIL PROTECTED]> wrote: > In a main menu nib, Application and File's Owner will be placeholders > for the same object. Interestingly, IB doesn't seem to be smart enough > to realize that they must be the same object, so setting the outlets > of

Re: [NSTableView/NSOutlineView] How can we draw a custom border?

2008-03-08 Thread Kyle Sluder
On Sat, Mar 8, 2008 at 1:21 PM, Stephane Sudre <[EMAIL PROTECTED]> wrote: > Maybe it's possible in IB 3 to set the class for the > NSTableHeaderView of a NSOutlineView but this would ruin my nib file > since I'm developing on Tiger. Dunno where/if this is documented, but the header view is obta

Re: Core Data and indexed attributes question (from a CD noobie)

2008-03-08 Thread Kyle Sluder
On Sat, Mar 8, 2008 at 1:14 PM, David Hoerl <[EMAIL PROTECTED]> wrote: > I cannot find nothing in the Xcode user documentation, the Core Data > documentation, nor on this list that explain what the "Indexed" > checkbox in Xcode 3's Attribute panel is for. > > A link or short explanation would be

Re: dynamic Application menu text

2008-03-08 Thread John Stiles
There is no way to do this, unfortunately. File a Radar if you'd like to see this functionality. (I can think of a few places where it would be useful...) Robert Spychala wrote: Hi All, Is there a way to dynamically set the Application menu text and the Dock hover text? The Application menu

Re: [NSTableView/NSOutlineView] How can we draw a custom border?

2008-03-08 Thread Stephane Sudre
On Mar 8, 2008, at 7:58 PM, Kyle Sluder wrote: On Sat, Mar 8, 2008 at 1:21 PM, Stephane Sudre <[EMAIL PROTECTED]> wrote: Maybe it's possible in IB 3 to set the class for the NSTableHeaderView of a NSOutlineView but this would ruin my nib file since I'm developing on Tiger. Dunno where/if

Re: GNUStep, OpenStep, NextStep, Cocoa port?

2008-03-08 Thread Gregory John Casamento
Jiva/William, "Their goal on the visuals are to reproduce the NeXT environment which today looks very dated and does not at all integrate well with gnome or kde. Even on windows it has the NeXT look and feel. " We realize that it's somewhat dated and are working on updating the look. Theming

Re: 10.5.2 release notes?

2008-03-08 Thread Jonathan Dann
However, there often are no developer release note updates for software updates. If there are bugfixes, why is this the case? To answer the original question, there are two NSTreeController bug fixes in 10.5.2; the one you may be thinking of is 5622232: "NSTreeController: points to inval

No parent window for sheets?

2008-03-08 Thread Paul Kim
I always assumed that sheets had a child-parent relationship with the window they were attached to. In my little test, calling -parentWindow on the sheet returns nil. The "parent" window does not have any child windows but -attachedSheet does return the sheet. As for why this matters, I was

NSUserDefaults and mutability

2008-03-08 Thread Trygve Inda
NSUserDefaults docs say: "Values returned from NSUserDefaults are immutable" However... NSDictionary * dict = [[NSUserDefaults standardUserDefaults] persistentDomainForName: @"com.mycompany.myapp"]; // dict is indeed immutable and contains one key value pair subDict which is // another dictionar

Custom dock tile for window ...

2008-03-08 Thread Michael Pringle
Hi, Earlier in the week I was trying to build an app the had no menu bar, but still had a dock icon, similar to Dashboard. However, the only way I could successfully hide my applications menu bar was to set the LSUIElement in the info.plist file, but as you probably know this also hides t

Re: Multiple applications, one NSUserDefaults object?

2008-03-08 Thread Trygve Inda
> > On 2007 Nov, 26, at 9:32, Joachim Deelen wrote: > >> For me the it's working without problems. I have a background App >> and another standalone App for setting the preferences. In the >> Background App, I'm just using addSuiteNamed and all the keys that >> were set by my standalone App are a

Re: No parent window for sheets?

2008-03-08 Thread Jim Correia
On Mar 8, 2008, at 4:56 PM, Paul Kim wrote: I always assumed that sheets had a child-parent relationship with the window they were attached to. In my little test, calling - parentWindow on the sheet returns nil. The "parent" window does not have any child windows but -attachedSheet does retu

ShortWeekNames

2008-03-08 Thread Alexander Griekspoor
Hi, Simple question (I assume). Given that the following: NSArray *defaultDayNames = [[NSUserDefaults standardUserDefaults]arrayForKey: NSShortWeekDayNameArray]; is deprecated on Leopard, what is now the blessed way of obtaining the users preferred short weekday names? Thanks, Alex *

Re: NSUserDefaults and mutability

2008-03-08 Thread Jens Alfke
On 8 Mar '08, at 1:57 PM, Trygve Inda wrote: Is this expected? Can I rely on it? I will never need to change dict, but I am modifying items within a known sub Dictionary. Don't rely on this; it's entirely possible this behavior could change in the future, causing your app to throw an exce

Re: Custom dock tile for window ...

2008-03-08 Thread Jens Alfke
On 8 Mar '08, at 2:44 PM, Michael Pringle wrote: Earlier in the week I was trying to build an app the had no menu bar, but still had a dock icon, similar to Dashboard. I don't know of a way to do that. The "Dashboard" app isn't really the dashboard itself, just a tiny stub that tells the r

Re: IB3 Application vs File Owner

2008-03-08 Thread Quincey Morris
On Mar 8, 2008, at 10:54, Kyle Sluder wrote: IB doesn't know for sure that the file's owner of the main nib is in fact the shared NSApplication instance. You could be doing some wonky stuff instead. The only way that IB could possibly know is if it performed static analysis. So rather than b

Re: GNUStep, OpenStep, NextStep, Cocoa port?

2008-03-08 Thread Kirk Kerekes
IMNTBHO, OpenStep/GnuStep are not useful means for achieving cross- platform GUI applications, at least not if the platforms are OS-X and Win32. Anyone who would disagree should point two out. OTOH, Cocotron, while spottily incomplete, is Doing

Re: IB3 Application vs File Owner

2008-03-08 Thread Kyle Sluder
On Sat, Mar 8, 2008 at 8:57 PM, Quincey Morris <[EMAIL PROTECTED]> wrote: > I wonder if there's any legal scenario for an application to create > two NSApplication (or subclass) objects, in particular to create two > in such a way that the non-main one needed to load its own nib file. No, becau

Re: ShortWeekNames

2008-03-08 Thread Nick Zitzmann
On Mar 8, 2008, at 6:01 PM, Alexander Griekspoor wrote: what is now the blessed way of obtaining the users preferred short weekday names? See -[NSDateFormatter shortWeekdaySymbols]. Nick Zitzmann ___ Cocoa-dev maili

Re: NSUserDefaults and mutability

2008-03-08 Thread Nick Zitzmann
On Mar 8, 2008, at 6:16 PM, Jens Alfke wrote: Don't rely on this; it's entirely possible this behavior could change in the future, causing your app to throw an exception. Something much like that happened in 10.4 (I think) — maybe it was the mutability of collections read from property lis

How to create the slider switch in the time machine preference panel in system preferences?

2008-03-08 Thread Scott . D . R
Greetings everyone. Maybe many of us have enabled the time machine function for our leopards. Very cool machine. I am interested in the time machine preference panel. When you open it, there is a slider-like switch allow you to enable or disable the time machine function. I am eager to how t

Re: GNUStep, OpenStep, NextStep, Cocoa port?

2008-03-08 Thread Sherm Pendley
On Sat, Mar 8, 2008 at 10:16 PM, Kirk Kerekes <[EMAIL PROTECTED]> wrote: > IMNTBHO, OpenStep/GnuStep are not useful means for achieving cross- > platform GUI applications, at least not if the platforms are OS-X and > Win32. > > Anyone who would disagree should point two out. > > OTOH, Cocotron,

Re: GNUStep, OpenStep, NextStep, Cocoa port?

2008-03-08 Thread Gregory John Casamento
Kirk, "IMNTBHO, OpenStep/GnuStep are not useful means for achieving cross- platform GUI applications, at least not if the platforms are OS-X and Win32." A number of companies mentioned on our wiki are using GNUstep in production environments. I don't currently know of any companies that are

How do I tell if the mouse button is down, independent of view, etc.?

2008-03-08 Thread Christopher Kempke
I'm working on some code for a client, whose users (handicapped children, mainly) are using non-standard mousing devices. These are (often literally) single-switch input devices: there's no notion of position with them at all, basically just a mouse button sans actual mouse. (On-scree

Re: GNUStep, OpenStep, NextStep, Cocoa port?

2008-03-08 Thread Dave Fernandes
On Mar 9, 2008, at 12:36 AM, Gregory John Casamento wrote: GNUstep is more than just the Cocoa API, it also has a clone of EOF (GDL) as well as WebObjects (GSWeb). Cocotron doesn't provide these. Additionally, GNUstep has an implementation of CoreData and the DataBuilder application, se

Re: GNUStep, OpenStep, NextStep, Cocoa port?

2008-03-08 Thread Jiva DeVoe
Hoping we're not too off topic for the list, if so, someone please say so. That said... I tried Cocotron, and I really liked it in theory. Yes, the apps it made looked more native than the ones from GNUstep. However, as soon as I wanted to get beyond making a text editor (Yes, specifical

Re: 10.5.2 release notes?

2008-03-08 Thread Stéphane Sudre
On Mar 8, 2008, at 10:38 PM, Jonathan Dann wrote: However, there often are no developer release note updates for software updates. If there are bugfixes, why is this the case? Because there's no bugfixes. It just happens that in certain OS releases, "engineering is not able to reproduc

Re: How do I tell if the mouse button is down, independent of view, etc.?

2008-03-08 Thread Dave Hersey
Chris, I think you'll need to put some Carbon in your Cocoa to get what you want. If you need to get that information systemwide (ie. when you're in the background too), you can use Carbon's GetCurrentButtonState() for the mouse and maybe Carbon HotKey APIs for the keypresses. You can r