Re: How to disconnect bound views temporarily

2008-06-17 Thread Markus Spoettl
On Jun 15, 2008, at 8:26 AM, Andy Mroczkowski wrote: I'm guessing that your NSArrayController is in the nib itself. One thing you could do is instantiate it programmatically and set it as an ivar of some other controller class in the nib (lets call it MyWindowController). Then bind the vie

NSDocument and default file names.

2008-06-17 Thread Godfrey van der Linden
G'day All, I have been lurking on this list for a while. It is interesting to be on the other side, I used to hang around answering questions on the kernel lists oh well, even kernel developers can become indie development occasionally ;-) When I create a new NSPersistentDocument, I reco

Re: opening default email and browser from the code

2008-06-17 Thread Mattias Arrelid
2008/6/17 Angelo Chen <[EMAIL PROTECTED]>: > Hi, > > I got two questions: > > 1) I have an email address in the code, I'd like to open default mailing > program from the code with the email address as the recipient. > > > 2) I have a NSImageView, when mouse move over it, the cursor should be > ch

Programatically placing panels inside a window

2008-06-17 Thread Ken Tozier
Hi I'm not sure If I'm going about this the right way but I created a bunch of panels in IB and want to swap individual panels in and out of a window at runtime. Basically what I'm doing is making a master/ detail window where the items listed in the master are objects that handle editing

NSOutlineView and weird binding behaviour

2008-06-17 Thread Godfrey van der Linden
This behaviour is really bending my mind. I thought I got bindings but it is really fooling me. I have 3 outline views controlled by a NSViewController. These outline views are bound for values to individual tree controllers arrangedObjects.shortName and each tree controller has its conte

Adding calendar-entries to iPhone's iCal

2008-06-17 Thread Georg Schuster
Hi, I was wondering if it is possible to create an iPhone application that can add calendar-entries such as events or meetings to the iPhone's local calendar. I read that you can use ScriptingBridge on OSX, but that doesn't work on the iPhone as far as I know. Is there a similar approach for the i

Re: Adding calendar-entries to iPhone's iCal

2008-06-17 Thread Michael Kaye
Hi Georg, Unfortunately all things "iPhone SDK" are still under NDA...so can't be discussed here yet. M. On 17 Jun 2008, at 12:35, Georg Schuster wrote: Hi, I was wondering if it is possible to create an iPhone application that can add calendar-entries such as events or meetings to the iP

Re: Adding calendar-entries to iPhone's iCal

2008-06-17 Thread Georg Schuster
Ouch, I better remember that. Thank you. ___ 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 y

Re: launching finder with optionschi

2008-06-17 Thread Hengist Podd
___ 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

Re: Programatically placing panels inside a window

2008-06-17 Thread Graham Cox
I have used a tabless NSTabView for this and it works well. hth, G. On 17 Jun 2008, at 5:59 pm, Ken Tozier wrote: Hi I'm not sure If I'm going about this the right way but I created a bunch of panels in IB and want to swap individual panels in and out of a window at runtime. Basically w

iMovie HD like splash screen

2008-06-17 Thread Angelo Chen
Hi, I'd like to implement a iMovie HD like splash screen, here are some tips needed: 1) when the 'quit' button is clicked, how to quit the entire application? 2) the bottom of the splash is grey with rounded corners, how to do that? Thanks, Angelo Yahoo! Mail具備一流的網上安全保護功能,請前往 http://hk

Re: iMovie HD like splash screen

2008-06-17 Thread Uli Kusterer
Am 17.06.2008 um 14:50 schrieb Angelo Chen: I'd like to implement a iMovie HD like splash screen, here are some tips needed: 1) when the 'quit' button is clicked, how to quit the entire application? Hook it up to the same action as your quit menu item? 2) the bottom of the splash is grey

Re: Programatically placing panels inside a window

2008-06-17 Thread Uli Kusterer
Am 17.06.2008 um 09:59 schrieb Ken Tozier: I'm not sure If I'm going about this the right way but I created a bunch of panels in IB and want to swap individual panels in and out of a window at runtime. Basically what I'm doing is making a master/ detail window where the items listed in the ma

Re: launching finder with optionschi

2008-06-17 Thread Uli Kusterer
Am 16.06.2008 um 18:36 schrieb Memo Akten: tell application "Finder" activate if not (exists Finder window 1) then make new Finder window to startup disk end if select Finder window 1 set target of Finder window 1 to folder "documents" of ho

Re: iMovie HD like splash screen

2008-06-17 Thread Angelo Chen
Hi, Thanks for the fast response, I tried the -setContentBorderTHickness, it does not work with me as I'm using Tiger 10.4.11, any equivalent of the method in this OS X? Angelo > Use NSWindow's new > -setContentBorderThickness:forEdge: method. > > Cheers, > -- Uli Kusterer > "The Witnesses

Re: iMovie HD like splash screen

2008-06-17 Thread Uli Kusterer
Am 17.06.2008 um 15:10 schrieb Angelo Chen: Thanks for the fast response, I tried the - setContentBorderTHickness, it does not work with me as I'm using Tiger 10.4.11, any equivalent of the method in this OS X? Use a brushed metal window and a custom NSView subclass that draws the white a

RE: Newbie interface questions - multiple "modal" windows

2008-06-17 Thread Matthew Youney
Jens, Graham, List, First, a bit of background : Yes, I am coming from multiple other platforms (ms c++; ms.net, national instruments CVI, multiple industrial HMI/SCADA, Kiel for proprietary embedded, etc, etc.). We write machine control applications for a variety of industries. www.youney.com T

Re: Newbie interface questions - multiple "modal" windows

2008-06-17 Thread glenn andreas
On Jun 17, 2008, at 9:30 AM, Matthew Youney wrote: This certainly can be easily done using a tab control. The downside is that the entire NIB is loaded at once, adversely affecting performance/ resources. This is not the end of the world, however I am starting with a "clean slate" here, a

Re: Newbie interface questions - multiple "modal" windows

2008-06-17 Thread Ricky Sharp
On Jun 17, 2008, at 9:30 AM, Matthew Youney wrote: The screens in out operator interfaces have to be mutually exclusive for a number of reasons. Configuration in one area cannot be altered unless configuration in another area has been completed. Product configuration cannot be taking pla

clickable NSImageView

2008-06-17 Thread Angelo Chen
Hi, I use the code at the end to let user click on an image and open a URL, this works, but not really satisfactory as when the mouse is moved over the image, the cursor was not changed to point-hand shape, any idea to improve this? Thanks, Angelo @interface BannerView : NSImageView { } -

Re: Programatically placing panels inside a window

2008-06-17 Thread Mike Abdullah
Also, Cathy Shive has some stuff that may be of help: http://katidev.com/blog/2008/04/09/nsviewcontroller-the-new-c-in-mvc-pt-1-of-3/ On 17 Jun 2008, at 00:59, Ken Tozier wrote: Hi I'm not sure If I'm going about this the right way but I created a bunch of panels in IB and want to swap indi

Re: clickable NSImageView

2008-06-17 Thread I. Savant
> I use the code at the end to let user click on an image and open a URL, this > works, but not really satisfactory as when the mouse is moved over the image, > the cursor was not changed to point-hand shape, any idea to improve this? > Thanks, Have you taken a second to search the documentat

Re: clickable NSImageView

2008-06-17 Thread Tolga Katas
check out, resetCursorRects - (void) resetCursorRects { [super resetCursorRects]; [self addCursorRect: [self bounds] cursor: [NSCursor pointingHandCursor]]; } On Jun 17, 2008, at 8:17 AM, Angelo Chen wrote: Hi, I use the code at the end to let user click on an image and o

question on layer setup in Covertflow sample code

2008-06-17 Thread Wayne Shao
Hi, I was reading the code (part of Core Animation sample code) and could not understand the part that the reflection layer is a sublayer of the desktop image layer. e.g, in Controller.m layer = [CALayer layer]; desktopImageLayer = [CALayer layer]; [layer setSublayers:[NSArray a

Re: Newbie interface questions - multiple "modal" windows

2008-06-17 Thread Michael Ash
On Mon, Jun 16, 2008 at 7:06 PM, Omar Qazi <[EMAIL PROTECTED]> wrote: > On Jun 16, 2008, at 4:38 PM, Matthew Youney wrote: >> >> 1. What is the best way to instantiate the "other" windows? In this >> application, all of the windows are quite unique, and there will never be >> more than one in

Re: Prevent Asynchronous operation of beginSheetModalForWindow

2008-06-17 Thread John Love
I have your previous message typed out and I really have read it ... and I will re-read it and re-read until it clicks. You know how I feel about compartmentalization. I really don't want to abandon it because compartmentalization does work for me for the NSProgressIndicator that I have, as well a

Re: clickable NSImageView

2008-06-17 Thread Mattias Arrelid
Hi Angelo, 2008/6/17 Angelo Chen <[EMAIL PROTECTED]>: > Hi, > > I use the code at the end to let user click on an image and open a URL, this > works, but not really satisfactory as when the mouse is moved over the image, > the cursor was not changed to point-hand shape, any idea to improve this?

PDF manipulation and fine control over page layout in Cocoa

2008-06-17 Thread Ewan Delanoy
Hello all, the usual print machinery (NSPrintOperation) for a Cocoa-based text editor (TextEdit, say) allows one to use a variety of page layouts. Unfortunately, in many cases the only layout available to the user involves a considerable waste of paper space, and this does not seem to be fixable

Re: duplicating views

2008-06-17 Thread Torsten Curdt
I've just thought of another solution that might be cleaner and more obvious. If your substrate view (the one that contains the rest of the controls) is a custom view class, you need only implement the NSCoding protocol and conditionally encode the outlets yourself. Then when the view is

Rethinking my approach; rather overwhelmed.

2008-06-17 Thread Josh de Lioncourt
Hi all, Thanks for the responses yesterday. They were quite helpful. However, they have led me down a number of other rivers of thought, and it seems that there should be a better way to handle the projects I'm working on than what I had originally planned. I have two main questions. T

Re: How does an instance variable in the ObjC code get connected to an interface element in the NIB file? BACK ON TRACK

2008-06-17 Thread Paul Archibald
Well, Erik, you know that sometimes we inherit working code without knowing much about its history. I don't want to break something that already works (and ships), and re-factoring the whole codebase is not part of my charter. I am trying to add my stuff without disturbing the working app.

noob question regarding (programmatic) bindings and data type coercion

2008-06-17 Thread Stuart Malin
I'm still trying to gain a deep and thorough understanding of bindings. I've made a very small app in which I am establishing a binding programmatically. I see different behaviors depending upon how I describe the bound property. Let me first describe my rather trivial app: 0) my app ha

Re: Rethinking my approach; rather overwhelmed.

2008-06-17 Thread Scott Ribe
> If I understand > correctly, there is absolutely no way to do this in XCode without > using Objective C. Sure, use Carbon. It's likely that's a dead-end in terms of Apple's evolution of APIs, and it absolutely does not eliminate the requirement of some Mac-specific code that will not compile u

Re: Rethinking my approach; rather overwhelmed.

2008-06-17 Thread Rush Manbert
On Jun 17, 2008, at 10:00 AM, Josh de Lioncourt wrote: Hi all, Thanks for the responses yesterday. They were quite helpful. However, they have led me down a number of other rivers of thought, and it seems that there should be a better way to handle the projects I'm working on than what

[MODERATOR] Re: Adding calendar-entries to iPhone's iCal

2008-06-17 Thread Scott Anguish
discussion of creating iPhone applications is NOT allowed on this list. from the guidelines Discussing NDA Projects (Snow Leopard and iPhone OS) and Private API This list is not an appropriate forum for the discussion of issue

Re: Rethinking my approach; rather overwhelmed.

2008-06-17 Thread Josh de Lioncourt
Hi Rush, Thanks for the advice. Being visually impaired, I haven't been able to find *ANY* up-to-date Cocoa/Objective C books in an accessible format. I have a couple of books that were written around 2002-ish, but have been hesitant to delve into those before being able to determine ho

Re: Rethinking my approach; rather overwhelmed.

2008-06-17 Thread Scott Ellsworth
On Tue, Jun 17, 2008 at 10:52 AM, Josh de Lioncourt <[EMAIL PROTECTED]> wrote: > Thanks for the advice. Being visually impaired, I haven't been able to find > *ANY* up-to-date Cocoa/Objective C books in an accessible format. I have a > couple of books that were written around 2002-ish, but have

Re: duplicating views

2008-06-17 Thread Jonathan Hess
Hey Torsten - It would probably be easiest to factor your view into a separate NIB and then load that nib multiple times. If you have reasons for not doing that, you could instead take the approach you suggested below. To get your outlets to roundtrip through the keyed archiver, you need

[MEET] LA CocoaHeads this Thursday, 6/19 at 7:30pm

2008-06-17 Thread Rob Ross
Howdy LA CocoaHeads! We will be meeting this Thursday, 6/19/08 at 7:30pm. We don't have a formal presentation prepared, but we do have several members who went to WWDC, so we can talk about all the non-NDA things they learned there, specifically all the latest on iPhone development. We als

Re: Rethinking my approach; rather overwhelmed.

2008-06-17 Thread Rush Manbert
Sorry Josh, I had not read your initial "Cocoa, C++, Keyboard input and Timers" post. I assumed you were just a Mac newbie and wasn't aware of your "multitude of obstacles". Maybe you can use a cross-platform GUI toolkit? There is wxWidgets (http://www.wxwidgets.org/ ), FLTK (http://www.fltk

Drawing in CALayers

2008-06-17 Thread Gordon Apple
I'm trying to migrate to using CALayers and having nothing but problems. I'm currently trying to use two simple CALayers, one for accumulated prior layers (my own list of draw lists) and one for the current layer. I'm using Cocoa to draw. No filters or transitions yet, just simple drawing. I

Re: Cocoa-dev Digest, Vol 5, Issue 1067

2008-06-17 Thread Jacob Bandes-Storch
Not to mention that XIBs that have been compiled to NIBs can't be opened in Interface Builder, meaning you can't edit the interfaces of newer applications. It takes the fun out of it :( On Jun 17, 2008, at 12:37 AM, [EMAIL PROTECTED] wrote: On Jun 16, 2008, at 5:54 PM, William Squires wrote:

Re: Rethinking my approach; rather overwhelmed.

2008-06-17 Thread Scott Ribe
> That shuts me out of GUI development with IB, forcing me > to rely on using code for what little GUI I do need, something not > covered in these books either. Not covered, but not hard, especially compared to any other way of building a UI via code. > I do have some sample code for > building a

Re: Drawing in CALayers

2008-06-17 Thread Scott Anguish
no, you can't. if you use layers-hosting views, then you should not rely on view drawing at all conversely, if you use layer-backed views then you should not directly access the views. On Jun 17, 2008, at 3:21 PM, Gordon Apple wrote: 2. Can you mix standard view drawing with CALeyers?

Re: noob question regarding (programmatic) bindings and data type coercion

2008-06-17 Thread Keary Suska
6/17/08 11:16 AM, also sprach [EMAIL PROTECTED]: > 0) my app has an AppController object that is instantiated in the > main Nib > 1) on the main Nib's window is an NSTextField that is connected (via > Nib loading) to an outlet of the AppController (named "valueTextField") > 2) my app has a Person

Re: nib and xib

2008-06-17 Thread Jonathan Hess
Hey William - This blog post explains XIB files quite nicely: http://speirs.org/2007/12/05/what-are-xib-files/ Jon Hess On Jun 16, 2008, at 5:54 PM, William Squires wrote: What's the difference? (assuming 'xib's aren't under NDA here...) ___ Coco

Re: How to implement floating HUD on fullscreen NSOpenGLView ?

2008-06-17 Thread Sean McBride
On 6/8/08 5:53 PM, Mike said: >I think this is more related to general cocoa so I post it here. > >I have OpenGL-view which can be toggled to fullscreen or not. ( [self >enterFullScreenMode:[NSScreen mainScreen] withOptions:nil]; ) > >This seems to work very well and is extremely simple solution.

Database Visualization For All Cocoa Applications

2008-06-17 Thread lbland
hi- This movie: http://www.vvi.com/movies/database might be of interest to the list, showing a custom IB plugin and db access within IB, etc. thanks!- -lance ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reque

Displaying live NSSlider value

2008-06-17 Thread Andy Klepack
I have an NSSlider and while the drag is in progress I would like to display the value in a text field. When the drag completes I would like the new value to get set in the user preferences and an action executed. As far as I can tell I'll have to set the slider to send its action continually i

Re: NSDocument and default file names.

2008-06-17 Thread Quincey Morris
On Jun 17, 2008, at 00:36, Godfrey van der Linden wrote: I have been lurking on this list for a while. It is interesting to be on the other side, I used to hang around answering questions on the kernel lists oh well, even kernel developers can become indie development occasionally ;-) W

Re: Displaying live NSSlider value

2008-06-17 Thread I. Savant
> I have an NSSlider and while the drag is in progress I would like to display > the value in a text field. When the drag completes I would like the new value > to get set in the user preferences and an action executed. > > As far as I can tell I'll have to set the slider to send its action > co

Re: Newbie interface questions - multiple "modal" windows

2008-06-17 Thread Jens Alfke
On 17 Jun '08, at 7:30 AM, Matthew Youney wrote: This certainly can be easily done using a tab control. The downside is that the entire NIB is loaded at once, adversely affecting performance/ resources. Have you found this to be true in actual operation, or do you just suspect that it wo

Re: Rethinking my approach; rather overwhelmed.

2008-06-17 Thread Josh de Lioncourt
Hi Rush, If I could get my hands on a NIB file that consisted of an web kit control that spanned the window, I suppose I could reuse that across several projects. This sounds like a fantastic idea for the limited GUI I need, especially since I have extensive experience in web development

Re: Drawing in CALayers

2008-06-17 Thread Erik Buck
I am a little bit confused by Scott's statement that "if you use layers-hosting views, then you should not rely on view drawing at all ... conversely, if you use layer-backed views then you should not directly access the views." I may just misunderstand what Scott means, but I have used lay

Re: NSOutlineView and weird binding behaviour

2008-06-17 Thread Jerry Krinock
On 2008 Jun, 17, at 3:02, Godfrey van der Linden wrote: This behaviour is really bending my mind. I thought I got bindings but it is really fooling me. I have 3 outline views controlled by a NSViewController. These outline views are bound for values to individual tree controllers arran

Re: iMovie HD like splash screen

2008-06-17 Thread Omar Qazi
[NSApp terminate:self] Omar Qazi Hello, Galaxy! 1.310.294.1593 On Jun 17, 2008, at 5:50 AM, Angelo Chen wrote: Hi, I'd like to implement a iMovie HD like splash screen, here are some tips needed: 1) when the 'quit' button is clicked, how to quit the entire application? smime.p7s De

Calendar Store for iCal Server calendar...

2008-06-17 Thread Charles E. Heizer
Hello, I'm trying to find more info on how to get access to calendars stored on a iCal server. Everything I'm finding is for the local iCal calendar store. Thanks, Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Displaying live NSSlider value

2008-06-17 Thread Michael Ash
On Tue, Jun 17, 2008 at 1:19 PM, Andy Klepack <[EMAIL PROTECTED]> wrote: > I have an NSSlider and while the drag is in progress I would like to display > the value in a text field. When the drag completes I would like the new value > to get set in the user preferences and an action executed. > >

Re: Keys dependent on NSArrayController's selection

2008-06-17 Thread Hamish Allan
On Thu, May 8, 2008 at 8:02 PM, Sean McBride <[EMAIL PROTECTED]> wrote: > On 5/8/08 1:45 PM, Dave Dribin said: > >>On May 8, 2008, at 9:22 AM, Sean McBride wrote: >> >>> On 5/8/08 1:53 AM, Dave Dribin said: >>> For kicks, I did try "peopleController.selectionIndex" as well as "peopleCont

Re: Calendar Store for iCal Server calendar...

2008-06-17 Thread Omar Qazi
On Jun 17, 2008, at 2:12 PM, Charles E. Heizer wrote: Hello, I'm trying to find more info on how to get access to calendars stored on a iCal server. Everything I'm finding is for the local iCal calendar store. Charles: As far as I know (and a quick google search seems to confirm this)

RE: Newbie interface questions - multiple "modal" windows

2008-06-17 Thread Matthew Youney
I have proceeded in the direction of the tab container today. Quite (extremely) easy to do. Performance is fine. All of the Cocoa UI objects seem very lightweight. I will probably "weigh things down" a bit with some images, etc. later on. I do really like the look and feel of the Cocoa/Mac UI,

Re: Displaying live NSSlider value

2008-06-17 Thread Omar Qazi
On Jun 17, 2008, at 1:19 PM, Andy Klepack wrote: I have an NSSlider and while the drag is in progress I would like to display the value in a text field. When the drag completes I would like the new value to get set in the user preferences and an action executed. As far as I can tell I'll

Re: Rethinking my approach; rather overwhelmed.

2008-06-17 Thread Josh de Lioncourt
Hi Scott, On Jun 17, 2008, at 12:31 PM, Scott Ribe wrote: I don't even know that it needs to be off-list. Try giving just a little bit more info about what you want to do. I have an idea how you might approach setting this up, but I'm not clear if it's based on an accurate understanding of

Re: NSDocument and default file names.

2008-06-17 Thread Godfrey van der Linden
Thanks. It was indeed overriding the displayName, obvious when you think about it. I think I'll ping docs and ask them to add a comment to that effect to [NSDocument displayName]. Godfrey On 2008-06-18, at 6:27 AM, Quincey Morris wrote: On Jun 17, 2008, at 00:36, Godfrey van der Linden

Re: Cocoa-dev Digest, Vol 5, Issue 1071

2008-06-17 Thread Gordon Apple
At the present time, I'm not doing animation. I just want a layer stack I can draw into, with one layer for previous drawings and one normal user drawing activities. Later, I want to add more layers for user annotation and (possibly animated) attention directors. So far, I haven't even been

Re: Rethinking my approach; rather overwhelmed.

2008-06-17 Thread Louis Gerbarg
On Tue, Jun 17, 2008 at 2:42 PM, Josh de Lioncourt <[EMAIL PROTECTED]> wrote: >> 2. Complex keyboard control. We need to be able to intercept keystrokes, >> be able to determine when keys are pressed or released, held in combination, >> etc. This includes the pressing of modifier keys alone. We

objects aren't added to NSMutableArray

2008-06-17 Thread Daniel Richman
I've got an object which has an NSMutableArray as an instance variable. If, in one of my methods, I try to call [myArray addObject:@"this is a test"]; (for example), I get no error, but the object isn't added. If I try to do [myArray objectAtIndex:0]; I get (null), and [myArray count]; ret

Re: Rethinking my approach; rather overwhelmed.

2008-06-17 Thread Andreas Monitzer
On Jun 18, 2008, at 01:22, Louis Gerbarg wrote: It sounds like what you want to do is here is subclass NSApplication, with a replacement implementation of sendEvent that decodes the incoming events, marshals the NSEvent's parameters, then sends them to your C++ code for processing. If your C++ c

NSURLConnection didReceiveAuthenticationChallenge weirdness

2008-06-17 Thread Paul E. Robichaux
I'm trying to properly respond to authentication challenges by overriding didReceiveAuthenticationChallenge. In the init method of my custom object, I take the user name and password passed in and create a NSURLCredential: EWScreds = [NSURLCredential credentialWithUser: inUserNam

Re: objects aren't added to NSMutableArray

2008-06-17 Thread Robert Kukuchka
You're not calling [[numbers alloc] init]; at the point when you try to addObject you're sending a message to nil, which is acceptable under Objective-C On 17-Jun-08, at 5:02 PM, Daniel Richman wrote: I've got an object which has an NSMutableArray as an instance variable. If, in one of my m

Re: objects aren't added to NSMutableArray [solved]

2008-06-17 Thread Daniel Richman
Makes perfect sense. I hadn't thought about that since I've been doing a lot of Interface Builder work recently, and of course those objects get allocated and initialized automatically. Thanks. Robert Kukuchka wrote: You're not calling [[numbers alloc] init]; at the point when you try to ad

Re: objects aren't added to NSMutableArray

2008-06-17 Thread James Walker
Daniel Richman wrote: I've got an object which has an NSMutableArray as an instance variable. If, in one of my methods, I try to call [myArray addObject:@"this is a test"]; (for example), I get no error, but the object isn't added. If I try to do [myArray objectAtIndex:0]; I get (null), a

Re: objects aren't added to NSMutableArray

2008-06-17 Thread Jens Alfke
On 17 Jun '08, at 5:02 PM, Daniel Richman wrote: I get no error, but the object isn't added. If I try to do [myArray objectAtIndex:0]; I get (null) That's a tip-off that the array pointer is nil, by the way — - objectAtIndex: *never* returns nil, because it's not legal to store nil values

Grand Central Details

2008-06-17 Thread Pierce T. Wetter III
I had a release the week before, plus we didn't have enough tickets since WWDC was sold out, so I didn't go. Are there any details on Grand Central? Things I would like it to be: 1. An implementation of SEDA. That stands for staged-event- driven-architecture. The basic idea is th

Re: objects aren't added to NSMutableArray

2008-06-17 Thread Adam R. Maxwell
On Jun 17, 2008, at 8:16 PM, Jens Alfke wrote: On 17 Jun '08, at 5:02 PM, Daniel Richman wrote: I get no error, but the object isn't added. If I try to do [myArray objectAtIndex:0]; I get (null) That's a tip-off that the array pointer is nil, by the way — - objectAtIndex: *never* returns

Re: Grand Central Details

2008-06-17 Thread David Wilson
WWDC is still under NDA, I'm pretty sure no one's allowed to say anything here beyond whatever mentions have been made to the press. On Tue, Jun 17, 2008 at 8:17 PM, Pierce T. Wetter III <[EMAIL PROTECTED]> wrote: > > I had a release the week before, plus we didn't have enough tickets since > WWD

Re: nib and xib

2008-06-17 Thread William Squires
Okay, thanks to all who answered. I think we can 'kill -9' this topic now... :) On Jun 16, 2008, at 7:54 PM, William Squires wrote: What's the difference? (assuming 'xib's aren't under NDA here...) ___ Cocoa-dev mailing list (Cocoa-dev@lists.app

Re: Grand Central Details

2008-06-17 Thread Ricky Sharp
On Jun 17, 2008, at 7:17 PM, Pierce T. Wetter III wrote: I had a release the week before, plus we didn't have enough tickets since WWDC was sold out, so I didn't go. Are there any details on Grand Central? First, Snow Leopard is under NDA; cannot discuss it here. If you've ever used

Re: Grand Central Details

2008-06-17 Thread Pierce T. Wetter III
On Jun 17, 2008, at 5:31 PM, David Wilson wrote: WWDC is still under NDA, I'm pretty sure no one's allowed to say anything here beyond whatever mentions have been made to the press. Well, Apple people are, once they obtain the appropriate permissions. Asking on the dev lists is often the b

unexpected nil outlet

2008-06-17 Thread William Squires
I'm trying to code a solution to the challenge "Make a Delegate" in chapter 6 of the new Hillegaas book. Here is my AppController.h @interface AppController : NSObject { IBOutlet NSWindow *window; } @end and my AppController.m #import #import "AppController.h" @implementation AppController

Re: Convert CGImageRef from BGR to RGB

2008-06-17 Thread Rodrigo Gutierrez
Let's just say that vImage isn't an option on the platform I would like to develop for. I was hoping there would be an approach that used a CGColorSpaceRef and the CGImageCreateCopyWithColorSpace method. I'm not sure if this is a valid approach though since the apple docs for doing these ty

Re: unexpected nil outlet

2008-06-17 Thread William Squires
Oh, there's an "@end" at the end of the .m file, too, before anyone jumps on this... :D On Jun 17, 2008, at 7:47 PM, William Squires wrote: I'm trying to code a solution to the challenge "Make a Delegate" in chapter 6 of the new Hillegaas book. Here is my AppController.h @interface AppCont

Re: unexpected nil outlet

2008-06-17 Thread David Wilson
- awakeFromNib Is the function you should be looking at. On Tue, Jun 17, 2008 at 8:47 PM, William Squires <[EMAIL PROTECTED]> wrote: > I'm trying to code a solution to the challenge "Make a Delegate" in chapter > 6 of the new Hillegaas book. Here is my AppController.h > > @interface AppController

Re: unexpected nil outlet

2008-06-17 Thread William Squires
Oh, and never mind. No one need respond to this - problem solved. I put the delegate caca in the awakeFromNib() method instead... On Jun 17, 2008, at 7:49 PM, William Squires wrote: Oh, there's an "@end" at the end of the .m file, too, before anyone jumps on this... :D On Jun 17, 2008, at

Re: unexpected nil outlet

2008-06-17 Thread Jonathan Hess
Hey William - Assuming everything else is correct, it looks like your problem is that you're poking at 'window' too early. Your object receives the init message before IB has a chance to establish connections. If you think about it, IB has to create all of the objects before it can connec

Re: Grand Central Details

2008-06-17 Thread Michael Gardner
On Jun 17, 2008, at 7:17 PM, Pierce T. Wetter III wrote: If you've ever used CoreNetwork you might get the idea, because CFNetwork is event-driven, rather then the shitty thread-per-socket style that CS students are taught. So you can easily handle a zillion connections with CoreNetwork

Re: Grand Central Details

2008-06-17 Thread I. Savant
Though sometimes I wish Apple had an NDA-required list. Even if I had to send a notarized form somewhere, the whole NDA thing gets annoying sometimes. Irrelevant. It's a legally binding agreement and this happens to be their list. Nobody likes it much (who would?) but, as has been menti

Where to store document window specific setup data

2008-06-17 Thread Markus Spoettl
Hello List, this is probably something that sounds stupid but as I'm new to the Mac, I'm not entirely sure how this is done right. I have a design decision to make on how (or even if) to store window setup data. I have a document base application. The document window has a couple of use

Re: Grand Central Details

2008-06-17 Thread Bill Bumgarner
On Jun 17, 2008, at 6:02 PM, Michael Gardner wrote: Too bad you can't avoid blocking at least occasionally with the event-driven APIs, meaning you still have to use threads to avoid it completely. And I fail to see what's so bad about having one thread per socket. Is it because Threads Are H

Dot syntax

2008-06-17 Thread John Dalbec
I've been playing with Core Data and the syntax I use to access a Core Data attribute. In Mac OS X 10.4 I used syntax like: [a valueForKeyPath @"b.selection.c"] where b is a NSObjectController bound to a Core Data entity with Cocoa Bindings and c is an attribute of that entity. In Mac OS X 1

File System Notifications

2008-06-17 Thread Omar Qazi
I'm a little confused about file system notifications in Cocoa. In NSWorkspace, it says that the method for subscribing to file system notifications will always return NO, which seems useless to me. I know Carbon has the FNSubscribe() and FNUnsubscribe() functions, but can I use those to ge

Re: File System Notifications

2008-06-17 Thread Stephen J. Butler
On Tue, Jun 17, 2008 at 9:04 PM, Omar Qazi <[EMAIL PROTECTED]> wrote: > I'm a little confused about file system notifications in Cocoa. In > NSWorkspace, it says that the method for subscribing to file system > notifications will always return NO, which seems useless to me. I know > Carbon has the

Re: noob question regarding (programmatic) bindings and data type coercion

2008-06-17 Thread Ken Thomases
On Jun 17, 2008, at 12:16 PM, Stuart Malin wrote: 1) from what (or where) does the property "value" of the NSTextField arise? Neither the class reference for NSTextField or NSControl have such an instance method (at least not that I've yet found). Bindings are different than properties. Th

getting accurate file modification time?

2008-06-17 Thread Angelo Chen
Hi, I use the code at end to get modification timestamp of a file including seconds, it works well until I encounter following: I have a file that is in the Document folder, the creation and modification date are both:2008-05-04 22:06:46 +0800 when this file is copied to a FAT volume, naturall

Re: getting accurate file modification time?

2008-06-17 Thread Graham Cox
Umm, because you modified it? Copying it to a new volume is a modification. G. On 18 Jun 2008, at 1:04 pm, Angelo Chen wrote: when this file is copied to a FAT volume, naturally the creation date is lost, modification date become: 2008-05-04 22:06:47 +0800 Any idea why this happens? Than

Re: getting accurate file modification time?

2008-06-17 Thread Graham Cox
On further thought, I misunderstood. Maybe the actual timestamp is getting rounded up on the FAT volume because it stores timestamps differently? G. On 18 Jun 2008, at 1:04 pm, Angelo Chen wrote: when this file is copied to a FAT volume, naturally the creation date is lost, modificatio

Re: getting accurate file modification time?

2008-06-17 Thread Chris Suter
On 18/06/2008, at 1:04 PM, Angelo Chen wrote: Hi, I use the code at end to get modification timestamp of a file including seconds, it works well until I encounter following: I have a file that is in the Document folder, the creation and modification date are both:2008-05-04 22:06:46 +080

re: Dot syntax

2008-06-17 Thread Ben Trumbull
I've been playing with Core Data and the syntax I use to access a Core Data attribute. In Mac OS X 10.4 I used syntax like: [a valueForKeyPath @"b.selection.c"] where b is a NSObjectController bound to a Core Data entity with Cocoa Bindings and c is an attribute of that entity. In Mac OS X 10.

Re: Rethinking my approach; rather overwhelmed.

2008-06-17 Thread Josh de Lioncourt
Hi Louis and Andy, I'm certainly looking at this suggestion, but another developer suggested that I may be better served by hooking into the keyboard input functionality of OpenGL. Assuming that have focus on an NSWindow doesn't interfere with such an implementation, I'd be able to accom

Re: Newbie interface questions - multiple "modal" windows

2008-06-17 Thread Uli Kusterer
Am 17.06.2008 um 16:39 schrieb glenn andreas: You can load views into tabs from multiple NIBs as needed - under 10.5 using NSViewController (or some manual grunt work under 10.4). I have a UKNibOwner class that I use for stuff like it. See: http://www.zathras.de/programming/cocoa/U

  1   2   >