Re: Hillegass, Third Edition, Chapter 18

2008-07-14 Thread Jeff Brown
Hi Jon Just an aside - does Hillegass, Third Edition teach you Core Data? The blurb on Amazon says it does but when I looked at the index online it didn't mention Core Data. Jeff Start at the new Yahoo!7 for a better online experience. www.yahoo7.com.au

Re: Hillegass, Third Edition, Chapter 18

2008-07-14 Thread Aron Nopanen
Jon, Your post sounds like a statement of fact more than a question, but I assume you're wondering why you can't draw multiple ovals? The view will be redrawn at various points, outside of your control, and your drawRect: routine must re-draw all previously-drawn ovals each time. This mean

Re: Questions about Core Data and SQLite

2008-07-14 Thread Jeff Brown
Thanks guys for all this info. Also can anyone point me to a good book or website where I can learn about and how to incorporate Core Data into my existing Cocoa App. I've found mac documentation isn't the easiest to learn from. Cheers Jeff Start at the new Yahoo!7 for a better online e

Re: CALayer transform, setting the Y value of rotation causes side-effects

2008-07-14 Thread John Clayton
Hi Duncan Thanks for the answer - it does make sense (also in light of the other replies to the same post). In my app, I've attached a simple 360 degree slider to the Y property, and I'd like that to rotate my layer smoothly through the Y axis by 360 degrees. What I'm seeing then, is th

Re: Questions about Core Data and SQLite

2008-07-14 Thread Chris Hanson
On Jul 14, 2008, at 9:08 PM, Jens Alfke wrote: On 14 Jul '08, at 6:05 PM, Steve Steinitz wrote: I use a little gigabit Thecus Network Drive which is just about as fast as using the internal disk. Humorously, my database currently fits in the Thecus' cache so it runs even faster. The scala

Re: Questions about Core Data and SQLite

2008-07-14 Thread Jens Alfke
On 14 Jul '08, at 6:05 PM, Steve Steinitz wrote: I use a little gigabit Thecus Network Drive which is just about as fast as using the internal disk. Humorously, my database currently fits in the Thecus' cache so it runs even faster. The scalability problem isn't the I/O speed, but the fact

Re: KVO notifications and threads

2008-07-14 Thread Ron Lue-Sang
On Jul 14, 2008, at 8:58 AM, Dave Dribin wrote: On Jul 11, 2008, at 2:36 PM, Bill Bumgarner wrote: If you have specific enhancement requests, please file a bug via http://bugreporter.apple.com . If your request is "make MVC and KVO play nicely with threads", you will need to provide detail

Hillegass, Third Edition, Chapter 18

2008-07-14 Thread Jon Buys
Hello All, I'm working through the challenge app at the end of Chapter 18 of Cocoa Programming, Third Edition. I've got my app to the point where it can draw ovals, but each time I click in the window it seems like the view redraws itself. I'm sure that this is a very simple question with a very

Re: [Q] Any document that shows differences of Cocoa programming for Mac and for the iPhone/iPod touch?

2008-07-14 Thread Stefan Arentz
On Jul 14, 2008, at 4:15 PM, JongAm Park wrote: ... (Well, I just looked up "NSViewController" document and it says that it was added to the Leopard. Is there any document which explains why it is added and how the programming model is changed due to the addition of it? ) The NSViewContro

Re: Design question

2008-07-14 Thread Michael Fey
I'd agree with what I.S. said, make sure you read up on and run through some tutorials for coding a table and its data source by hand. Aaron Hillegass does a great job of this in Cocoa Programming for Mac OS X. As a Cocoa newbie this is a great book to hit the ground running. It assumes

Re: Questions about Core Data and SQLite

2008-07-14 Thread Colin Cornaby
You might want to look into Postgresql instead. It's much nicer than MySQL at doing desktop applications stuff, and you can even "subscribe" to rows and have the server notify you when changes occur. This makes it much easier to keep clients in sync. MySQL is not great for doing desktop app

Re: NSUserDefaultsController, when does value change?

2008-07-14 Thread James W. Walker
On Jul 14, 2008, at 9:34 AM, Matt Neuburg wrote: On Sun, 13 Jul 2008 21:29:56 -0700, "James W. Walker" <[EMAIL PROTECTED] > said: I have a preferences dialog that I'm using with an NSUserDefaultsController instance, my first use of bindings, and it works. But I want to post a notification wh

Re: Design question

2008-07-14 Thread I. Savant
Does anyone have any comments on my design so far? Overcomplicated. :-) If I were writing a quick utility to do as you're looking to do, I'd probably implement it all in a single application controller. There's no real design advantage in something with so few requirements and simple is

Mouse events in NSTextFieldCell

2008-07-14 Thread Damien Cooke
Hi all, I have an NSTableView that lists names of images. I want to pop up a thumbnail image as I roll the mouse over the cells. I thought I could do this by sub-classing the NSTextFieldCell. However I am stumped as to how to get it to acknowledge mouse events obviously I have not enab

Re: Questions about Core Data and SQLite

2008-07-14 Thread Steve Steinitz
Hi, On 14/7/08, [EMAIL PROTECTED] wrote: On Jul 14, 2008, at 8:12 AM, Chris Hanson wrote: However, managing simultaneous access by *different users* to a SQLite persistent store is slightly trickier -- they must all access the persistent store in ways that have compatible file locking.

Design question

2008-07-14 Thread Phillip Hall
Hi all, As a developer entering the cocoa world for the first time one of the things I am finding difficult is how to start structuring an application, I mean what classes should I create to make an OK application design. I have a simple application I am working on at the moment, and am hoping

Re: Trouble with performSelector afterDelay

2008-07-14 Thread Jens Alfke
On 14 Jul '08, at 4:12 PM, Shawn Erickson wrote: It looks like you override release in your "Worker" object (based on the back trace you posted). Are you thinking -[Worker release] is the place to free resources? If so it isn't the right place. You want -[Worker dealloc]. Right. -release just

Re: Creating and App menu from Scratch

2008-07-14 Thread Bill Royds
On 14-Jul-08, at 17:55 , Kyle Sluder wrote: I suppose the question I should be asking you is, who is your audience? What does your product do? Why do you want to auto-generate your user interface in a serialized object graph form from a textual template? That certainly wouldn't be my first c

Re: KVV and the missing Discard Changes button

2008-07-14 Thread Steve Green
On Jul 14, 2008, at 5:25 PM, Kyle Sluder wrote: On Mon, Jul 14, 2008 at 2:40 PM, Steve Green <[EMAIL PROTECTED]> wrote: I did see that as a possible solution but I'm not sure why it's necessary in one app and it's not necessary in another. I've created a test project with a single text fiel

Re: Trouble with performSelector afterDelay

2008-07-14 Thread Shawn Erickson
On Mon, Jul 14, 2008 at 3:59 PM, James Trankelson <[EMAIL PROTECTED]> wrote: > Thanks, Ken, > > I had a suspicion that's what was going on there, so I just added a > few extra [Worker retain] messages before I sent the message to be > handled. Still, the object gets released. release != dealloc I

Re: NSSlider and timers

2008-07-14 Thread Joseph Kelly
Would it be easy to re-factor your usb stuff to run on a separate thread? In my mind, that's clearly the most robust solution. Joe K. On Apr 14, 2006, at 5:50 PM, John Goodman wrote: I have a timer than needs to fire while the user drags an NSSlider. I have seen solutions that use the NSRun

Re: Trouble with performSelector afterDelay

2008-07-14 Thread James Trankelson
Thanks, Ken, I had a suspicion that's what was going on there, so I just added a few extra [Worker retain] messages before I sent the message to be handled. Still, the object gets released. I have yet to find an explanation about any other reasons an object might get released even after sending i

Re: Creating and App menu from Scratch

2008-07-14 Thread Georg Seifert
Hello, I hope this is appropriate on this this list: As the discussion goes around Interface design, would it be for any interest for developers with no time or experience in interface design if I offer my services? I’m a graphic designer with focus on interface design. And I’m programmin

Re: Trouble with performSelector afterDelay

2008-07-14 Thread Ken Thomases
On Jul 14, 2008, at 5:25 PM, James Trankelson wrote: The funny thing about my Worker class is that it's a singleton, implementing the following method: - (unsigned)retainCount { return UINT_MAX; //Never release } Are there other ways objects can get released if not by retainCount? The i

Re: Trouble with performSelector afterDelay

2008-07-14 Thread James Trankelson
Hi Jens, You're suggesting that my Worker instance is being deallocated because it's retain count is going to zero after the performSelector is invoked, right? The funny thing about my Worker class is that it's a singleton, implementing the following method: - (unsigned)retainCount { return

NSSearchField and NSTokenFieldCell?

2008-07-14 Thread Colin Cornaby
I have a program where I'd like the user to be able to drag in a NSTokenFieldCell into an NSSearchField. What would be the best strategy in implementing this? I'm assuming that I'm probably going to have to subclass the search field. In addition, I'm binding to the search field's predicate,

Re: NSTextField labels and URLs

2008-07-14 Thread Stefan Arentz
On Jul 14, 2008, at 4:01 PM, Dmitri Goutnik wrote: Hi, I'm almost positive I've seen this asked here a few weeks back, but search turned up nothing so here goes... I have About panel with copyright label (NSTextField) that have URL in it. Label is set to allow rich text and be selectable

Re: Creating and App menu from Scratch

2008-07-14 Thread Kyle Sluder
On Mon, Jul 14, 2008 at 3:06 PM, Bill Royds <[EMAIL PROTECTED]> wrote: > Forms layout is not part of the "standard user experience" in general, > although forms look and feel is. Wrong. Otherwise the Apple HIG, the Windows interface guidelines, the Gnome HIG, etc. all would lack sections on the p

Re: KVV and the missing Discard Changes button

2008-07-14 Thread Kyle Sluder
On Mon, Jul 14, 2008 at 2:40 PM, Steve Green <[EMAIL PROTECTED]> wrote: > I did see that as a possible solution but I'm not sure why it's necessary in > one app and it's not necessary in another. I've created a test project with > a single text field that's bound to the exact same model object tha

Re: [Q] Any document that shows differences of Cocoa programming for Mac and for the iPhone/iPod touch?

2008-07-14 Thread JongAm Park
I'm sorry. I thought that the announcement of the final Xcode 3.1 also covered the iPhone SDK issue automatically. Thanks for reminding me of that. Waqar Malik wrote: Still under NDA. __

Re: [Q] Any document that shows differences of Cocoa programming for Mac and for the iPhone/iPod touch?

2008-07-14 Thread Waqar Malik
Still under NDA. --Waqar On Jul 14, 2008, at 3:15 PM, JongAm Park wrote: Hello, all. Because the final SDK for the iPhone came out, I started to take a look at it. Although I knew that Window/View hierarchies are different

Re: Trouble with performSelector afterDelay

2008-07-14 Thread Jens Alfke
On 14 Jul '08, at 11:53 AM, James Trankelson wrote: #0 0x0002606d in -[Worker release] at Worker.m:155 #1 0x94e8502a in __delayedPerformCleanup #2 0x9390d92b in CFRunLoopTimerInvalidate #3 0x9390e879 in CFRunLoopRunSpecific #4 0x9390ecf8 in CFRunLoopRunInMode #5 0x

Re: [Q] Any document that shows differences of Cocoa programming for Mac and for the iPhone/iPod touch?

2008-07-14 Thread Bill Bumgarner
The iPhone SDK, including all APIs, is still under NDA. It can't be discussed here, nor can it be discussed in any other public forum. b.bum smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Servicing Core Animations?

2008-07-14 Thread Jens Alfke
On 14 Jul '08, at 11:52 AM, Bill Dudney wrote: You can of course override this but in the example below you are doing the animation yourself so there is no reason for CA. i.e. tracking mouse movements is not something you want to do with CA animations anyway. It's fine to use CA while tr

[Q] Any document that shows differences of Cocoa programming for Mac and for the iPhone/iPod touch?

2008-07-14 Thread JongAm Park
Hello, all. Because the final SDK for the iPhone came out, I started to take a look at it. Although I knew that Window/View hierarchies are different on the Mac and the iPhone, I found that there were some fundamental difference in programming model. For example, this code from http://devel

Re: What is the best way?

2008-07-14 Thread Seth Willits
On Jul 14, 2008, at 9:57 AM, Ronnie B wrote: Thats correct. The main window is not covered up. The second window is not modal I agree. In the second window I just need to collect some additional info that will go the the second's window controller. There will be OK and Cancel buttons on

Re: Responder Chain Patching

2008-07-14 Thread Jonathan Dann
Have you seen this http://katidev.com/blog/2008/04/17/nsviewcontroller-the-new-c-in-mvc-pt-2-of-3/ and this thread http://www.cocoabuilder.com/archive/message/cocoa/2008/3/19/201743 All of this is covered, with automatic insertion of view controllers into the responder chain. If you want t

Re: What is the best way?

2008-07-14 Thread Scott Ribe
> Thats correct. The main window is not covered up. The second window is not > modal I agree. In the second window I just need to collect some additional > info that will go the the second's window controller. There will be OK and > Cancel buttons on that window to close it. The main window wi

Re: [PDFDocument documentRef] internal method questions.

2008-07-14 Thread John Calhoun
On Jul 14, 2008, at 9:04 AM, Kevin Ross wrote: In my subclassing PDFDocument adventures I wanted to add a method to my subclass like so: - (CGPDFDocumentRef)documentRef; I realized that it was overriding an internal PDFDocument method that I was unaware of. This actually helps a big perfor

Re: Rounded NSWindow corners?

2008-07-14 Thread Jonathan Dann
Have a look and see if the window is textured or not, it a window setting in IB. Non-textured windows have no bottom border by default. Its in the AppKit release notes http://developer.apple.com/releasenotes/Cocoa/AppKit.html under the NSWindow heading. Often this is used in conjunction w

NSTextField labels and URLs

2008-07-14 Thread Dmitri Goutnik
Hi, I'm almost positive I've seen this asked here a few weeks back, but search turned up nothing so here goes... I have About panel with copyright label (NSTextField) that have URL in it. Label is set to allow rich text and be selectable, copyright string is loaded from Credits.rtf and as

Re: NSViewController and View Swapping

2008-07-14 Thread Jonathan Dann
NSView has a method -replaceSubview:with: see: http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/Reference/NSView.html#/ /apple_ref/occ/instm/NSView/replaceSubview:with: So you need to have some setup where you can keep track of you view controllers

Rounded NSWindow corners?

2008-07-14 Thread Chad Harrison
My main window in IB has a "square" bottom both when I edit it in IB, and when I simulate the interface. But in my compiled app, it has the "rounded" bottom like in the 10.5 Finder and iTunes. Why is there this inconsistency between windows? +Chad ___

Re: CALayer transform, setting the Y value of rotation causes side-effects

2008-07-14 Thread Frédéric Testuz
Le 14 juil. 08 à 18:57, John Clayton a écrit : Hi All, I'm setting the rotation values of a CALayer, and notice that when setting the Y component of rotation of a CATransform3D structure via the : [layer setValue:someValue forKeyPath:@"transform.rotation.y"] call, that in certain

Re: CALayer transform, setting the Y value of rotation causes side-effects

2008-07-14 Thread Dmitri Goutnik
John, You're rotating layer around Y axis by 2.12041 which is greater than PI/2. So after rotation you're looking at the "back side" of the layer, that's why X and Z get close to PI (i.e. flipped). - Dmitri On Jul 14, 2008, at 8:57 PM, John Clayton wrote: Hi All, I'm setting the rotatio

Re: Creating and App menu from Scratch

2008-07-14 Thread Bill Royds
On 14-Jul-08, at 12:38 , Gregory Weston <[EMAIL PROTECTED]>wrote: No he's not. Long-time Mac developers know quite well that by and large Mac users are very averse to apps that simply don't fit. It's not a question of arguments about "better" or "worse" (although such arguments can cert

Re: Remove overlap on NSBezierPath

2008-07-14 Thread Greg Titus
Thanks! - Greg On Jul 14, 2008, at 4:24 AM, Graham Cox wrote: On 14 Jul 2008, at 7:48 pm, Georg Seifert wrote: Hello, Thanks for you replies. To clarify: I need it in a small drawing app, where you can draw shapes and then you should be able to combine them. There is no outline

Trouble with performSelector afterDelay

2008-07-14 Thread James Trankelson
Hi, I've been experiencing some strangeness that I can't seem to understand surrounding my use of performSelector afterDelay. The situation is as follows. I have a class, 'Listener', that, when initialized, spawns a thread to listen on a port: class Listener: - (id) init { self = [super init]

Re: Servicing Core Animations?

2008-07-14 Thread Bill Dudney
Hi Chilton, The animator does not commit its transaction until back in the event loop so you won't see any animation until you return to the main event loop. You can of course override this but in the example below you are doing the animation yourself so there is no reason for CA. i.e. tr

Re: Remove overlap on NSBezierPath

2008-07-14 Thread Greg Titus
On Jul 14, 2008, at 4:24 AM, Graham Cox wrote: Right now I use GPC and (optional) curve fitting. It keeps the curves in terms of their appearance but can greatly alter the number and location of the control points. I don't like it much either - one reason I'd love there to be a great soluti

Re: KVV and the missing Discard Changes button

2008-07-14 Thread Steve Green
On Jul 14, 2008, at 1:42 PM, Kyle Sluder wrote: On Mon, Jul 14, 2008 at 12:58 PM, Steve Green <[EMAIL PROTECTED]> wrote: I'm sure I must be overlooking something simple, but I just can't figure out how to get the Discard Changes button to appear in that one app. Any clues would be greatly a

Re: CALayer transform, setting the Y value of rotation causes side-effects

2008-07-14 Thread David Duncan
On Jul 14, 2008, at 9:57 AM, John Clayton wrote: Huh? Question 1: Why do X and Z get very close to PI? Question 2: Why does Y end up being 1.02 when I set it to 2.12041? Does anyone know what's going on here? I'm a little stumped by this one. The simple answer is that with a 4x4 rotation

Re: Creating the app menu from scratch

2008-07-14 Thread Jim Crafton
> Actually, reading the docs for +loadNibNamed:owner:, I think it is even > easier (but you'll want to test it). The owner is used to determine where > to look for the NIB. > > If you were to create a subclass of NSApplication that lives within the > framework that has your generic MainMenu.nib an

Re: Creating the app menu from scratch

2008-07-14 Thread Jim Crafton
> > > Based on my analysis of Cocoa nib loading, I had the same thought and agree > with Bill that this should work. However, I wasn't sure why Jim was talking > about a C++ application and whether that makes a difference. Well the framework is C++ (it's here if you care: http://vcf-online.org), s

Re: Creating the app menu from scratch

2008-07-14 Thread Jeff Johnson
On Jul 14, 2008, at 12:05 PM, Bill Bumgarner wrote: On Jul 14, 2008, at 7:29 AM, Jim Crafton wrote: How do you bootstrap the framework? I.e. what executable is run that uses the resources from the framework? That is the most likely place to stick the MainMenu.nib and let Cocoa bootstrap t

Re: Questions about Core Data and SQLite

2008-07-14 Thread Chris Hanson
On Jul 14, 2008, at 8:12 AM, Jens Alfke wrote: Second, CoreData really isn't meant for having two clients (whether users or processes) accessing the database at once. I think it's possible to do this, but it requires extra work to get each client to detect when the other has changed the db,

Re: KVV and the missing Discard Changes button

2008-07-14 Thread Kyle Sluder
On Mon, Jul 14, 2008 at 12:58 PM, Steve Green <[EMAIL PROTECTED]> wrote: > I'm sure I must be overlooking something simple, but I just > can't figure out how to get the Discard Changes button to appear in that one > app. Any clues would be greatly appreciated. Create a recovery attempter and add

Re: Creating the app menu from scratch

2008-07-14 Thread Bill Bumgarner
On Jul 14, 2008, at 7:29 AM, Jim Crafton wrote: How do you bootstrap the framework? I.e. what executable is run that uses the resources from the framework? That is the most likely place to stick the MainMenu.nib and let Cocoa bootstrap the normal way. Well you'd create your standard C++ a

Re: What is the best way?

2008-07-14 Thread Shawn Erickson
On Mon, Jul 14, 2008 at 9:57 AM, Ronnie B <[EMAIL PROTECTED]> wrote: > Thats correct. The main window is not covered up. The second window is not > modal I agree. In the second window I just need to collect some additional > info that will go the the second's window controller. There will be OK

Re: How to detect NSTextAttachment deletion

2008-07-14 Thread Todd Ransom
Hello, Take a look at the NSTextView delegate method shouldChangeTextInRange:replacementString: The replacementString parameter will be blank (@"") on deletes, nil for attribute changes, and have a string on inserts or replacements of existing text. This method is called before the actu

Re: How to detect NSTextAttachment deletion

2008-07-14 Thread Aki Inoue
Chaitanya, In general, whenever you want to detect user initiated editing, you can use -textView:shouldChangeTextInRanges:replacementStrings:. In this delegate method, look for NSTextAttachmentAttributeName in the editing range. Aki On 2008/07/14, at 9:37, chaitanya pandit wrote: Hi,

KVV and the missing Discard Changes button

2008-07-14 Thread Steve Green
Developers, In several of my applications I use key value validation. In one of my applications in particular, the error sheet that gets displayed only has the OK button. In the other apps, I see the OK button as well as a Discard Changes button. I'm sure I must be overlooking somethin

CALayer transform, setting the Y value of rotation causes side-effects

2008-07-14 Thread John Clayton
Hi All, I'm setting the rotation values of a CALayer, and notice that when setting the Y component of rotation of a CATransform3D structure via the : [layer setValue:someValue forKeyPath:@"transform.rotation.y"] call, that in certain cases of 'someValue' (the y rotation), the X and

Re: What is the best way?

2008-07-14 Thread Ronnie B
Thats correct. The main window is not covered up. The second window is not modal I agree. In the second window I just need to collect some additional info that will go the the second's window controller. There will be OK and Cancel buttons on that window to close it. The main window will not c

Re: Creating the app menu from scratch

2008-07-14 Thread Bill Bumgarner
On Jul 14, 2008, at 8:58 AM, Jeff Johnson wrote: I can't imagine much use for method_exchangeImplementations() with my own classes, because I can write the implementations myself. You certainly need to be careful, but my example seemed pretty innocuous. Calling at the beginning of main() sho

Re: What is the best way?

2008-07-14 Thread Scott Ribe
> The Main window shall not be > blocked. What would be a proper way of doing things like that? What do you mean? The main window should not be covered up? Or events should still be processed by the main window? Because if it's the latter, then don't run the second window as modal. -- Scott Rib

How to detect NSTextAttachment deletion

2008-07-14 Thread chaitanya pandit
Hi, I am using a NSTextView and i programatically insert images as NSTextAttachments in the textView. These attachments are shown in an NSTextAttachmentCell by the NSTextView. I want to do some background processing just before the user deletes the image from the textView. This can happen if

Re: NSUserDefaultsController, when does value change?

2008-07-14 Thread Matt Neuburg
On Sun, 13 Jul 2008 21:29:56 -0700, "James W. Walker" <[EMAIL PROTECTED]> said: >I have a preferences dialog that I'm using with an >NSUserDefaultsController instance, my first use of bindings, and it >works. But I want to post a notification when a certain setting >changes. In my method that sho

[PDFDocument documentRef] internal method questions.

2008-07-14 Thread Kevin Ross
In my subclassing PDFDocument adventures I wanted to add a method to my subclass like so: - (CGPDFDocumentRef)documentRef; I realized that it was overriding an internal PDFDocument method that I was unaware of. This actually helps a big performance bottleneck in the application because I

Re: PDFDocument Subclass and Undo Manager Redux

2008-07-14 Thread Kevin Ross
Well after making some tweaks I seem to have it working. I'm not sure if it was something that I did or if the 10.5.4 update could have fixed the undo manager bug in PDFView. Anyway, I've got it working, thanks! - Kevin On Jul 11, 2008, at 3:31 PM, Kevin Ross wrote: Hello cocoa-devs! I

Re: Creating the app menu from scratch

2008-07-14 Thread Jeff Johnson
On Jul 14, 2008, at 3:16 AM, Bill Bumgarner wrote: On Jul 13, 2008, at 11:35 PM, Jeff Johnson wrote: On the other hand, the function method_exchangeImplementations() just became public API in Leopard, so I don't see how that can break anytime soon. It's not much different than subclassing

Re: KVO notifications and threads

2008-07-14 Thread Dave Dribin
On Jul 11, 2008, at 2:36 PM, Bill Bumgarner wrote: If you have specific enhancement requests, please file a bug via http://bugreporter.apple.com . If your request is "make MVC and KVO play nicely with threads", you will need to provide details on exactly what you mean -- exactly how that is

Re: Questions about Core Data and SQLite

2008-07-14 Thread Jens Alfke
On 14 Jul '08, at 1:05 AM, Jeff Brown wrote: Is there any way I can incorporate Core Data into the app so that I can do away with using MySql? i.e. log into the app on one machine (using it's SQLite database) from the same app on a different machine? There are two problems with this — Fir

Re: Creating and App menu from Scratch

2008-07-14 Thread Gregory Weston
Kyle Sluder wrote: On Mon, Jul 14, 2008 at 9:37 AM, Bill Royds <[EMAIL PROTECTED]> wrote: The layout may be a "standard" form required by law or other convention. I am not suggesting that one port the code, just the forms and menu labels. I know of no statute that mandates Look & Feel, an

Re: Remove overlap on NSBezierPath

2008-07-14 Thread Jens Alfke
On 14 Jul '08, at 5:26 AM, Robert Clair wrote: The basic algorithm is conceptually simple: 1.) find all the intersections 2.) break into pieces at the intersections 3.) decide which pieces you need on the basis of some in/out tests and which set operation you are doing. 4.) assemble the fina

Re: Trigonometric Problem, Particularly tan() Function

2008-07-14 Thread glenn andreas
On Jul 14, 2008, at 9:06 AM, Sean McBride wrote: On 7/13/08 2:53 PM, Graham Cox said: Obviously the tan() function works as it should Not necessarily so obvious. :) The log10() function was broken in 10.5.2: And vpowf ha

Re: Creating and App menu from Scratch

2008-07-14 Thread Gregory Weston
Bill Royds wrote: On 14-Jul-08, at 09:20 , Kyle Sluder wrote: It would lead to a large increase in poorly-designed, auto-ported Mac applications. And then developers would wonder why nobody wants to purchase their software, even though the Windows version did so well. Not necessarily. You a

What is the best way?

2008-07-14 Thread Ronnie B
Hi. I am seeking an advise. I have an app that after loading a MainMenu.nib, it checks the defaults for some data and if data is not there, the app will request it via the other NIB (modal window). The Main window shall not be blocked. What would be a proper way of doing things like that? _

Re: NSBezierPath fill pattern?

2008-07-14 Thread Matt Gough
Sounds like you want to use [NSColor colorWithPatternImage] and use that as the fill color. Matt On 14 Jul 2008, at 4:48pm, David Harper wrote: Hello, I'm hoping to find a way to fill an NSBezierPath with a bitmap pattern of arbitrary size - probably something like 32x32. It will be a 2

NSBezierPath fill pattern?

2008-07-14 Thread David Harper
Hello, I'm hoping to find a way to fill an NSBezierPath with a bitmap pattern of arbitrary size - probably something like 32x32. It will be a 2-color "on-off" (foreground-background) pattern where each color can be defined by the user. Looking through the NSBezierPath class documentation, not

Re: Creating the app menu from scratch

2008-07-14 Thread Jim Crafton
> Your application's menu isn't that big of a deal, but your application's > integration with Mac OS X is a very big deal and that is most of the battle > of doing "nib less" development. It is much more than just populating the > main menu. Specifically, the application wrapper -- the .app --

Re: NSViewController and View Swapping

2008-07-14 Thread Brad Gibbs
OK, thanks for the tip. I think this will work well for the situation I described. But, that screen (with its tab view and all of the custom views to be made available from within the tab view) is one of several screens like it. The other tab views will contain different numbers of tabs.

Re: Trigonometric Problem, Particularly tan() Function

2008-07-14 Thread Sean McBride
On 7/13/08 2:53 PM, Graham Cox said: >Obviously the tan() function works as it should Not necessarily so obvious. :) The log10() function was broken in 10.5.2: -- Sean Mc

Re: Trashing files and undo

2008-07-14 Thread Sean McBride
On 7/12/08 11:49 AM, Charles Srstka said: >He's not referring to making an alias *file*, just an alias in memory. >To do that, you make an FSRef first as I described, then you use >FSNewAlias() with NULL as the first argument, a pointer to your FSRef >as the second argument, and a pointer to an Al

Re: Creating and App menu from Scratch

2008-07-14 Thread Kyle Sluder
On Mon, Jul 14, 2008 at 9:37 AM, Bill Royds <[EMAIL PROTECTED]> wrote: > Not necessarily. You are assuming that all other interfaces are inferior to > Macintosh interfaces. No, I am asserting that not following the conventions established on the Mac is inferior to following those conventions, rega

Re: Is there any way to show disclosure button always closed in NSOutlineView

2008-07-14 Thread douglas welton
HI Aman, Have you considered using custom cells in your NSOutlineView? The parent cell could be used to display info about the children objects without having to display the actual children. You could then use a different cell for the children objects to display the additional child-speci

Re: Creating and App menu from Scratch

2008-07-14 Thread Bill Royds
On 14-Jul-08, at 09:20 , Kyle Sluder wrote: It would lead to a large increase in poorly-designed, auto-ported Mac applications. And then developers would wonder why nobody wants to purchase their software, even though the Windows version did so well. Not necessarily. You are assuming that al

Re: Creating and App menu from Scratch

2008-07-14 Thread Kevin Walzer
Bill Royds wrote: Are there any good tools for porting Application menus and forms from other windowing systems (such as MS Windows or X or even Carbon) to Cocoa nibs? I have a number of applications that I would like to port, but redesigning the form or menu layout completely seems to be ra

Re: Questions about Core Data and SQLite

2008-07-14 Thread Kyle Sluder
On Mon, Jul 14, 2008 at 4:05 AM, Jeff Brown <[EMAIL PROTECTED]> wrote: > Is there any way I can incorporate Core Data into the app so that I can do > away with using MySql? i.e. log into the app on one machine (using it's > SQLite database) from the same app on a different machine? No. Please r

Re: Creating and App menu from Scratch

2008-07-14 Thread Kyle Sluder
On Mon, Jul 14, 2008 at 8:53 AM, Bill Royds <[EMAIL PROTECTED]> wrote: > Being able to do this would lead to an large increase in the number of > Macintosh applications available. It would lead to a large increase in poorly-designed, auto-ported Mac applications. And then developers would wonder

Re: Creating and App menu from Scratch

2008-07-14 Thread Bill Royds
On 14-Jul-08, at 01:38 , Bill Bumgarner <[EMAIL PROTECTED] wrote: Your application's menu isn't that big of a deal, but your application's integration with Mac OS X is a very big deal and that is most of the battle of doing "nib less" development. It is much more than just populating the

Re: Remove overlap on NSBezierPath

2008-07-14 Thread Robert Clair
What the mathematicians balk at isn't the pathological cases; rather, getting exact results. But the real problem is that these two are related. I spent several years fixing the Boolean operations for a major CAD company's solid modeler (the long-gone ComputerVision) which is essentially t

Re: NSSliderCell subclass?

2008-07-14 Thread Damien Cooke
Thanks Graham, You are a champion. That saves me a lot of work. I have no idea why I did not spot that in the docs. I am sorry to trouble you. Damien On 14/07/2008, at 8:39 PM, Graham Cox wrote: Just invoke [mySlider setContinuous:YES] and your action method will be called for every va

Re: Remove overlap on NSBezierPath

2008-07-14 Thread Graham Cox
On 14 Jul 2008, at 7:48 pm, Georg Seifert wrote: Hello, Thanks for you replies. To clarify: I need it in a small drawing app, where you can draw shapes and then you should be able to combine them. There is no outline but the winding is quite important (there may be overlapping, clipping

Re: Is there any way to show disclosure button always closed in NSOutlineView

2008-07-14 Thread I. Savant
On Jul 14, 2008, at 7:07 AM, Aman Alam wrote: I want to show some detail about items that is in child object without expanding the disclosure button. They're called "tooltips" and you should most definitely use them. Alternatively, selecting the parent can reveal summary child data in a

Re: NSSliderCell subclass?

2008-07-14 Thread Graham Cox
Just invoke [mySlider setContinuous:YES] and your action method will be called for every value change while sliding "live". Did you mean something else? Graham On 14 Jul 2008, at 9:02 pm, Damien Cooke wrote: Hi All, I want to be able to determine the value of the NSSlider whilst sliding

NSSliderCell subclass?

2008-07-14 Thread Damien Cooke
Hi All, I want to be able to determine the value of the NSSlider whilst sliding it. I am guessing I will have to subclass NSSliderCell but if anyone has an example or some direction as to which methods I need to override I would really appreciate it. Regards Damien "We act as though c

Re: Is there any way to show disclosure button always closed in NSOutlineView

2008-07-14 Thread Aman Alam
I want to show some detail about items that is in child object without expanding the disclosure button. On clicking disclosure button, there comes more detail that contained by some other child items without removing previous one. Also the childs must contain disclosure button that will use t

Re: Is there any way to show disclosure button always closed in NSOutlineView

2008-07-14 Thread Joan Lluch (casa)
El 14/07/2008, a las 7:49, Aman Alam escribió: I am working on a project that needs the disclosure button of NSOutlineView always closed whether its row are expanded or not. Does anyone know that how to do that? Does not that violate the Apple Human Interface Guidelines?. I mean, wha

Re: Remove overlap on NSBezierPath

2008-07-14 Thread Georg Seifert
Hello, Thanks for you replies. To clarify: I need it in a small drawing app, where you can draw shapes and then you should be able to combine them. There is no outline but the winding is quite important (there may be overlapping, clipping and self intersecting parts). I did found DrawKit

  1   2   >