Re: Two controllers in a window, how do I get one to run a function in another?

2009-08-31 Thread Graham Cox
On 01/09/2009, at 4:13 PM, BareFeet wrote: To try to isolate the issue, I created a "Refresh" button and hooked it up to a refresh method in MyController. It just calls "init" (as below). When the program runs and instantiates a document that I open, debugging the init call shows the_docum

Re: Two controllers in a window, how do I get one to run a function in another?

2009-08-31 Thread BareFeet
Hi again Graham and anyone else interested, Yes, I've done that, control dragged from MyController to File's Owner and selected the_document. For simplicity, I'm just creating the_document in MyController (I've no need for MyDocument to refer to the_controller). I still get nil for the_do

Re: IKSlideshow reloadData should reload, yes?

2009-08-31 Thread Joar Wingfors
Hello Adam, If you don't get any other replies here, please make sure to file a bug report: Include a sample project if possible. Thanks, j o a r On 31 aug 2009, at 14.50, Adam Knight wrote: I'm using IKSlideshow to display images that I

Re: Snow Leopard bug?

2009-08-31 Thread Graham Cox
On 01/09/2009, at 3:41 PM, Kyle Sluder wrote: On Aug 31, 2009, at 10:32 PM, Graham Cox wrote: No apps that have one are properly maintaining their "Recent Items" menus. At first I thought it was just my app, since I'm overriding the standard behaviour, but it's happening for all apps, X

Build Issue?

2009-08-31 Thread Thomas Willson
I am having a really odd issue while developing my program. I was developing my program and went to build. It built fine but when I ran it, I got no data back from an NSTask. If I copy the XCode project to my other mac, it builds fine. A copy built on the other computer works fine on both a

Re: Snow Leopard bug?

2009-08-31 Thread Kyle Sluder
On Aug 31, 2009, at 10:32 PM, Graham Cox wrote: No apps that have one are properly maintaining their "Recent Items" menus. At first I thought it was just my app, since I'm overriding the standard behaviour, but it's happening for all apps, XCode included. AppKit on Snow Leopard now obeys

Snow Leopard bug?

2009-08-31 Thread Graham Cox
Anyone else seeing this on Snow Leopard? No apps that have one are properly maintaining their "Recent Items" menus. At first I thought it was just my app, since I'm overriding the standard behaviour, but it's happening for all apps, XCode included. --Graham ___

Re: refresh issue with QLPreviewPanel..!

2009-08-31 Thread Naresh Kongara
Hi, In snowleopard the framework is provided under quartz framework, and some changes are made for preview panel also, i.e instead of setting URLS we need to implement datasource methods. I had a seperate implementation for snowleopard. This is working fine for Snowleopard. Only issue is

Re: Two controllers in a window, how do I get one to run a function in another?

2009-08-31 Thread Graham Cox
On 01/09/2009, at 2:55 PM, BareFeet wrote: Doh!, no, missed that. Thanks for that. That's important - it's a forward declaration, which informs the compiler that the MyDocument* is merely a pointer, and so it doesn't need to know anything else about the class - it has all it needs to pro

Re: Two controllers in a window, how do I get one to run a function in another?

2009-08-31 Thread BareFeet
Hi Graham and all, ahh, now that makes sense. That's what I was missing. I was trying to add IBOutlets for instance variables but needed to instead add IBOutlets for the class (eg MyDocument). Whaaa? You're probably getting your terminology confused but the above makes no sense to me. IBO

Re: Setting default button to Window containing box.

2009-08-31 Thread Vijay Kanse
I came to know that setting alpha for box and window content view is rising this problem. I don't understand what is connection between setting alpha for view and box with default buttoncell. what should be done to avoid vibration for Mouse vibration. Thanks. On Sat, Aug 29, 2009 at 10:59 AM,

[MEET] September CocoaHeads Mac Developer Meetings

2009-08-31 Thread Stephen Zyszkiewicz
Greetings, CocoaHeads is an international Mac programmer's group. Meetings are free and open to the public. We specialize in Cocoa, but everything Mac programming related is welcome. Upcoming meetings: Australia Denmark- Tuesday, September 8, 2009 19:00. Germany Bonn- Thursday, September 2

How can file packages become unpackaged?

2009-08-31 Thread Graham Cox
Here's a strange one. In my app I have a bunch of templates which are packaged documents loaded directly from my app's resources. On my system and the vast majority out there, they work fine. But a couple of users have reported that they don't see them. I've tracked down the issue to the

Re: Two controllers in a window, how do I get one to run a function in another?

2009-08-31 Thread Graham Cox
On 01/09/2009, at 12:25 PM, BareFeet wrote: ahh, now that makes sense. That's what I was missing. I was trying to add IBOutlets for instance variables but needed to instead add IBOutlets for the class (eg MyDocument). Whaaa? You're probably getting your terminology confused, but the abo

Re: Two controllers in a window, how do I get one to run a function in another?

2009-08-31 Thread BareFeet
Hi Graham and all, I also tried to use bindings, which I've made work well for linking text views, table columns, even outline view columns, to data in my model. But I can't seem to set up bindings to link an instance variable in one controller to another controller. So I guess bindings a

Re: Core Data observer exception in 10.6

2009-08-31 Thread David Sinclair
On Aug 29, 2009, at 18:18:42, Ben Trumbull wrote: Hard to say without more details, but it does look like a Cocoa Bindings bug. If you could create a new sample project with your NIB and your model and reproduce this, and then attach it to a bug report, that would be extremely helpful.

Re: saving files/folders in foreign language names

2009-08-31 Thread Navneet Kumar
Hi, Thanks for the reply. Actually my program is a finder like program, which saves file (in path hierarchy). And the hierarchy I mentioned earlier is the actual hierarchy on the user's file system. I'm not hard coding anything. What I think is happening is that NSFM's changeCurrentDirectory

Re: saving files/folders in foreign language names

2009-08-31 Thread Kyle Sluder
What does foreign language have to do with it? Are you perhaps using accented characters like é in your pathnames? You need to be very careful when doing that, because the filesystem stores it in decomposed form as e + ´, whereas if you've hardcoded this path in your code (or strings file), you w

Re: NSMenuItem's selectors messages not sent

2009-08-31 Thread Steven Degutis
Lorenzo, My first guess would be that you must have turned on garbage collection at some point, and have a controller object that's not strongly referenced by other objects, floating about in your NIB. If this is the case, the object would deallocate pretty soon after your NIB loads, and no message

saving files/folders in foreign language names

2009-08-31 Thread Nick Rogers
Hi, I have the following hierarchy to save programatically (e.g.): my english path name/some french dir name/some french file name.file Now I'm using NSFileManager to do this: 1. create a folder at "my english path name". correctly done. 2. change current dir to "my english path name" and creati

Re: Get error message about registered observers when Object receives dealloc message

2009-08-31 Thread Sean McBride
On 8/29/09 10:28 AM, Quincey Morris said: >The second is that one of the behaviors he doesn't control -- >unregistration of observers -- is not permitted during the 'dealloc' >of the observed object, and must be done before that. Note that the wonderful AnalysisTool can catch this through static

Re: How to use NSTextView's new -checkTextInRange:types:options:?

2009-08-31 Thread Keith Blount
Just a quick update, as I've played with this some more: I have tried passing in various ranges to -checkTextInRange:types:options:, thinking that maybe it needed a typing range (of 1 in length), and trying to emulate the sorts of ranges that get passed into the method by the text view (by overr

Re: "Format not a string literal and no format arguments"

2009-08-31 Thread Sean McBride
On 8/29/09 4:00 PM, Ken Thomases said: >GCC knows about the standard formatting functions and applies the >analysis to them automatically, by default. However, it also allows >the application of the __attribute__((format ...)) decoration to user- >defined functions to have them checked in the sam

Re: Overriding NSMenu from an NSTextView

2009-08-31 Thread Jack Carbaugh
Change the Key equiv of the menu item when your textview takes on key focus, then set it back when finished. On Aug 31, 2009, at 5:50 PM, Chilton Webb wrote: Hi! I have a menu item that defines Command+Shift+Arrow (left and right) to do something. But I'd also like to support the 'norma

IKSlideshow reloadData should reload, yes?

2009-08-31 Thread Adam Knight
I'm using IKSlideshow to display images that I'm fetching from a server in the background. There is a thumbnail and a full-size version of each image. When IKSlideshow asks for an item at an index, if the full-size image is there, I give it the path to that cache file. If it is not there

Overriding NSMenu from an NSTextView

2009-08-31 Thread Chilton Webb
Hi! I have a menu item that defines Command+Shift+Arrow (left and right) to do something. But I'd also like to support the 'normal' NSTextView behavior for Command+Shift+Arrow. How do I tell my app to ignore this particular menu command (and use the default NSTextView behavior) when edi

Re: NSInternalInconsistencyException -- keyLoopGroupingView should be a NSToolbarView

2009-08-31 Thread Greg Parker
On Aug 31, 2009, at 2:34 PM, David Riggle wrote: How do I prevent this crash? It happens occasionally when I call [NSView nextValidKeyView] or [NSWindow selectKeyViewFollowingView:] in a window that has a toolbar. Here's a typical stack trace: #6 0x948f2dcb +[NSException raise:format:argume

Re: NSCollectionView item selection on Snow Leopard

2009-08-31 Thread Markus Spoettl
For those following: It turned out to be a bug in NSCollectionView that surfaces if the collection view items can become first responder. Regards Markus -- __ Markus Spoettl smime.p7s Description: S/MIME cryptographic signature

Re: system(root) locale

2009-08-31 Thread Chris Kane
[NSLocale systemLocale] returns the root NSLocale. If you are referring to the BSD/Unix-level locale, you can start by looking in /usr/include/xlocale.h, but I don't know anything else about that. Chris Kane Cocoa Frameworks, Apple On Aug 31, 2009, at 12:53 AM, Maggie Zhang wrote: Hi,

NSInternalInconsistencyException -- keyLoopGroupingView should be a NSToolbarView

2009-08-31 Thread David Riggle
How do I prevent this crash? It happens occasionally when I call [NSView nextValidKeyView] or [NSWindow selectKeyViewFollowingView:] in a window that has a toolbar. Here's a typical stack trace: #6 0x948f2dcb +[NSException raise:format:arguments:] #7 0x92e9fec4 -[NSAssertionHandler handle

Re: Why would NSViewController loadView fail?

2009-08-31 Thread Eric Gorr
On Aug 31, 2009, at 5:06 PM, Corbin Dunn wrote: On Aug 31, 2009, at 1:59 PM, Jonathan Hess wrote: I would try running with zombies. And now that you have SnowLeopard, this should be the first thing you (meaning, the collective of Cocoa programmers out there) should do: In Xcode: Run

NSMenuItem's selectors messages not sent

2009-08-31 Thread Lorenzo Thurman
I have two applications, both NSStatusItems. Upon upgrading to Snow Leopard (from 10.5), I've found that none of the messages associated with the menu items are called. As near as I can tell, the messages are never dispatched, at least the breakpoints in the methods are never hit. I can't find anyt

Re: Why would NSViewController loadView fail?

2009-08-31 Thread Corbin Dunn
On Aug 31, 2009, at 1:59 PM, Jonathan Hess wrote: I would try running with zombies. And now that you have SnowLeopard, this should be the first thing you (meaning, the collective of Cocoa programmers out there) should do: In Xcode: Run -> Run with Performance Tool -> Zombies Then, reprod

Re: Why would NSViewController loadView fail?

2009-08-31 Thread Jonathan Hess
I would try running with zombies. It sounds like one of the objects loaded by the NIB file is being over released. Jon Hess On Aug 31, 2009, at 1:55 PM, Eric Gorr wrote: On Aug 31, 2009, at 3:58 PM, Kyle Sluder wrote: On Mon, Aug 31, 2009 at 12:26 PM, Eric Gorr wrote: Building and runni

Re: Why would NSViewController loadView fail?

2009-08-31 Thread Eric Gorr
On Aug 31, 2009, at 4:54 PM, Jonathan Hess wrote: On Aug 28, 2009, at 1:36 PM, Eric Gorr wrote: I am pretty sure I've got my .xib setup correctly, but when I call loadView on my View Controller, my application crashes. Unfortunately, I am not getting any useful information out of the cr

Re: Why would NSViewController loadView fail?

2009-08-31 Thread Eric Gorr
On Aug 31, 2009, at 3:58 PM, Kyle Sluder wrote: On Mon, Aug 31, 2009 at 12:26 PM, Eric Gorr wrote: Building and running it on Snow Leopard causes it to crash horribly. Try reopening/resaving your nib in the latest Interface Builder? Thanks. I did try that, but it didn't help. I tried us

Re: Why would NSViewController loadView fail?

2009-08-31 Thread Jonathan Hess
On Aug 28, 2009, at 1:36 PM, Eric Gorr wrote: I am pretty sure I've got my .xib setup correctly, but when I call loadView on my View Controller, my application crashes. Unfortunately, I am not getting any useful information out of the crash. The only thing I appear to have is a stack trace

Re: What sound plays after an Installer runs? [OT]

2009-08-31 Thread Alastair Houghton
On 31 Aug 2009, at 18:59, Greg Guerin wrote: Therefore, it *may* be copyright infringement, with or without the qualifying phrase "unless the owner of the aforementioned sound file (in this case Apple) says you can", which further assumes that Apple *is* the sound's copyright owner, and has

Markers below baseline in NSRulerView

2009-08-31 Thread Anders Lassen
Hi, I have some problems with the NSRulerView that I hope to solve by this request. The NSRulerView I am using is a horizontal ruler view in a NSScrollView. In most examples seen in the developer documentation, the markers on the ruler are located above the baseline. In my opinon, this do

Core Data? -beginUndoGrouping does not always increment -groupingLevel

2009-08-31 Thread Jerry Krinock
In trying to eliminate extraneous undo groupings from my Core Data document-based applications, I've noticed a simple paradox maybe someone could explain. In my persistent document's -init, I replace its undo manager, and that of its managed object context, with my own which, for now, is a

Re: Why would NSViewController loadView fail?

2009-08-31 Thread Kyle Sluder
On Mon, Aug 31, 2009 at 12:26 PM, Eric Gorr wrote: > Building and running it on Snow Leopard causes it to crash horribly. Try reopening/resaving your nib in the latest Interface Builder? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

Re: refresh issue with QLPreviewPanel..!

2009-08-31 Thread Julien Jalon
Needless to say that what you do is totally unsupported and will totally break in 10.6. 10.6 now provides a public (incompatible with Leopard) API but even with this API, what you do is greatly unsupported (and will break in the future). Add to that the fact QL panel is very asynchronous, and it's

Re: Why would NSViewController loadView fail?

2009-08-31 Thread Eric Gorr
On Aug 28, 2009, at 4:36 PM, Eric Gorr wrote: I am pretty sure I've got my .xib setup correctly, but when I call loadView on my View Controller, my application crashes. Unfortunately, I am not getting any useful information out of the crash. The only thing I appear to have is a stack trace

Re: NSCollectionView item selection on Snow Leopard

2009-08-31 Thread Markus Spoettl
Hello Kevin, I'm not observing the selection indexes of the collection view, but those of the bound NSArrayController. I've followed your advice and overwrote both -scrollRectToVisible and - setSelectionIndexes: with breakpoints in them. In the case of the scrolling on -mouseDown: within

Re: 10.6: Check Box Cells in NSTableViews always editable!

2009-08-31 Thread Gerd Knops
On Aug 31, 2009, at 1:28 PM, Volker in Lists wrote: Hi, have you changed the binding conditionally sets enabled respectively conditionally sets editable ? That did the trick before on 10.5 Tried that (BTW did not need that in 10.5, at least not in later versions). Didn't help in 10.6...

Re: Handling international text without text views

2009-08-31 Thread Aki Inoue
The bottom-line window approach was mainly for supporting Carbon applications that cannot be moved from the WNE design model due to its own legacy application structuring. Since Cocoa is not based on responder message handling design, such event handling model is unnecessary. And the user

Re: How To Unbind

2009-08-31 Thread Richard Somers
On Aug 31, 2009, at 7:05 AM, Klaus Backert wrote: Have you tried the constant NSManagedObjectContextBinding defined in NSKeyValueBinding.h instead of your constant @"managedObjectContext"? I don't know, but may be NSManagedObjectContextBinding does not contain this string. The problem was

Re: 10.6: Check Box Cells in NSTableViews always editable!

2009-08-31 Thread Volker in Lists
Hi, have you changed the binding conditionally sets enabled respectively conditionally sets editable ? That did the trick before on 10.5 volker Am 31.08.2009 um 20:21 schrieb Gerd Knops: Seems that in Snow Leopard the "editable" setting in the column attributes is ignored for Check Box Ce

10.6: Check Box Cells in NSTableViews always editable!

2009-08-31 Thread Gerd Knops
Seems that in Snow Leopard the "editable" setting in the column attributes is ignored for Check Box Cells in NSTableViews. That is causing trouble, for example when the bound value is read-only. Anyone knows of a workaround? I tried hooking up the editable binding of both column and cell to

Re: What sound plays after an Installer runs? [OT]

2009-08-31 Thread Greg Guerin
Alastair Houghton wrote: How does that differ from what I wrote? (Answer: it doesn't) It differs in the strength of the assertion: "is" is definitive; "may" isn't. You essentially wrote "Technically that's copyright infringement ...", where "that's" is a contraction of "that is", and

Re: I can't find it in the docs so I know I'm missing it some where

2009-08-31 Thread Development
Wow. that really needs to change. Subscription services or what not cant use the store then since most of those are free downloads. Ah well. Back to paypal. On Aug 31, 2009, at 9:46 AM, Luke the Hiesterman wrote: Free apps cannot use in-app purchase. You must charge at least 99 cents. Lu

Re: I can't find it in the docs so I know I'm missing it some where

2009-08-31 Thread Luke the Hiesterman
Free apps cannot use in-app purchase. You must charge at least 99 cents. Luke On Aug 31, 2009, at 9:44 AM, Development wrote: Are apps that are offered for free not allowed to use the store kit? It seems foolish to have an app the requires a subscription that is not a free download. __

I can't find it in the docs so I know I'm missing it some where

2009-08-31 Thread Development
Are apps that are offered for free not allowed to use the store kit? It seems foolish to have an app the requires a subscription that is not a free download. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests o

Re: Right-to-Left / Bidi / Arabic / Hebrew support in my app

2009-08-31 Thread Ken Ferry
On Aug 31, 2009, at 8:51 AM, Marc Wandschneider > wrote: Thanks for the feedback. In general, I've found that while the controls do, indeed, seem to align the text correctly for input in bidi locales, there is little support in things like IB for putting the label on a box at the top righ

Re: What sound plays after an Installer runs? [OT]

2009-08-31 Thread Alastair Houghton
On 31 Aug 2009, at 16:12, Greg Guerin wrote: Alastair Houghton wrote: *Technically* (since it's the word you used), that's copyright infringement, unless the owner of the aforementioned sound file (in this case Apple) says you can. Technically, it MAY be copyright infringement. We don't

Re: Finding information about deprecated methods / what replaces them?

2009-08-31 Thread David Duncan
On Aug 30, 2009, at 6:12 PM, Joar Wingfors wrote: The documentation should, IMO, point you to the replacement API if there is any, and probably also tell you if there isn't. I'd suggest that you file bug reports on the documentation if it doesn't:

Re: Right-to-Left / Bidi / Arabic / Hebrew support in my app

2009-08-31 Thread Benjamin Stiglitz
> It looks like I'll just have to use other controls to do the same effect in > IB, and just check of locale.name == "ar" || "he" in code to do the reverse > drawing. On 10.6 your heuristic should instead mirror the value of the new -userInterfaceLayoutDirection accessor in NSApplication (and NSCe

Re: Right-to-Left / Bidi / Arabic / Hebrew support in my app

2009-08-31 Thread Marc Wandschneider
Thanks for the feedback. In general, I've found that while the controls do, indeed, seem to align the text correctly for input in bidi locales, there is little support in things like IB for putting the label on a box at the top right instead of the top-left, and also in code for determining what t

Re: What sound plays after an Installer runs? [OT]

2009-08-31 Thread Greg Guerin
Alastair Houghton wrote: *Technically* (since it's the word you used), that's copyright infringement, unless the owner of the aforementioned sound file (in this case Apple) says you can. Technically, it MAY be copyright infringement. We don't know the owner of the sound, nor its provena

Re: What sound plays after an Installer runs?

2009-08-31 Thread Alastair Houghton
On 31 Aug 2009, at 15:15, Steven Degutis wrote: Aaron, The sound played is not part of Cocoa if I recall correctly. It is located inside Installer.app's Resources directory and you can thus technically take it out and use it in your app, if you're alright with that sort of thing. *Techni

Re: AppleScript crashing and garbage collection

2009-08-31 Thread jonat...@mugginsoft.com
On 31 Aug 2009, at 15:33, I. Savant wrote: On Aug 31, 2009, at 10:31 AM, jonat...@mugginsoft.com wrote: Some time ago we learnt that compiling AppleScript in a GC app is unpredictable: ... This still seems to be an issue on 10.5.7. Does anyone know if SL has the fix in place? Yes. This

NSCollectionView item selection on Snow Leopard

2009-08-31 Thread Markus Spoettl
Hello, I have an NSCollectionView that used to work normally on Leopard, when the App is running on Snow Leopard, item selection using the mouse by clicking on it doesn't work correctly. When clicking on an item in the bottom-most visible row, instead of selecting that item the collecti

Re: AppleScript crashing and garbage collection

2009-08-31 Thread I. Savant
On Aug 31, 2009, at 10:31 AM, jonat...@mugginsoft.com wrote: Some time ago we learnt that compiling AppleScript in a GC app is unpredictable: ... This still seems to be an issue on 10.5.7. Does anyone know if SL has the fix in place? Yes. This was specifically mentioned in the release not

AppleScript crashing and garbage collection

2009-08-31 Thread jonat...@mugginsoft.com
Some time ago we learnt that compiling AppleScript in a GC app is unpredictable: http://www.cocoabuilder.com/archive/message/cocoa/2008/4/22/204897 It was stated: FROM : Mark Piccirelli DATE : Tue Apr 22 22:16:12 2008 Yes. But we intend to fix it in a software update. (And I can't say anythi

How to use NSTextView's new -checkTextInRange:types:options:?

2009-08-31 Thread Keith Blount
Hello, I am trying to force text checking in an NSTextView on Snow Leopard using the new -checkTextInRange:types:options: method, but I can't seem to get this method to work at all. I am aware that the documentation clearly states that "this method *usually* would not be called directly" (altho

Re: outlineView:dataCellForTableColumn:item: repeated called w null tableColumn on Snow Leopard

2009-08-31 Thread Corbin Dunn
On Aug 28, 2009, at 5:31 PM, David Melgar wrote: On Aug 28, 2009, at 6:13 PM, Corbin Dunn wrote: On Aug 28, 2009, at 3:07 PM, David Melgar wrote: I printed out all the calls. What happening is: 1. My data source/delegate/controller initWithCoder method is invoked. But its pointer to th

Re: What sound plays after an Installer runs?

2009-08-31 Thread Steven Degutis
Aaron, The sound played is not part of Cocoa if I recall correctly. It is located inside Installer.app's Resources directory and you can thus technically take it out and use it in your app, if you're alright with that sort of thing. -- Steven Degutis http://www.thoughtfultree.com/ http://www.degu

Re: learning the NSView structure of an app?

2009-08-31 Thread sag lists
Great feedback guys, thanks for the help. ___ 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/Upda

Re: Errors & Warnings Smart Group Missing from XCode 3.2

2009-08-31 Thread Graham Cox
On 31/08/2009, at 9:25 PM, Peter Ferrett wrote: I have installed XCode 3.2 from the Snow Leopard Disc and find that the Errors & Warnings smart group is missing. I cannot find any way to view a list of warnings during compile. Wondering if anyone else has experienced this & found a fix.

How To Unbind

2009-08-31 Thread Richard Somers
I have a controller. NSArrayController *controller; Then I establish a binding programmatically which works fine. [controller bind:@"managedObjectContext" toObject:self withKeyPath:@"managedObjectContext" options:nil]; Then I unbind programmatical

Re: View Swapping Issue.

2009-08-31 Thread Graham Cox
On 31/08/2009, at 10:08 PM, Philip Juel Borges wrote: The code from the IndexViewController.m to shift focus is [mainWindow makeFirstResponder: webView]; So I need to figure out how I can connect the mainWindow outlet to the HostWindow in the MainMenu.xib file from the IndexView.xib file.

View Swapping Issue.

2009-08-31 Thread Philip Juel Borges
Hi, I'm using code from ViewController to swap between views in my app, which works fine. In my app one view is named IndexView.xib and that contains one tableview and one webview and an NSObject called IndexViewController.h/m Recently, I discovered how to shift the focus from the t

Re: Errors & Warnings Smart Group Missing from XCode 3.2

2009-08-31 Thread I. Savant
On Aug 31, 2009, at 7:25 AM, Peter Ferrett wrote: I have installed XCode 3.2 from the Snow Leopard Disc and find that the Errors & Warnings smart group is missing. I cannot find any way to view a list of warnings during compile. Wondering if anyone else has experienced this & found a fi

Re: _NSAutoreleaseNoPool missing in Snow Leopard

2009-08-31 Thread Klaus Backert
On 31 Aug 2009, at 03:50, Kyle Sluder wrote: Except his previous stack trace seems to indicate that the at-fault code is in QTKit… When logging image and library names as they are loaded and calls to class and category +load methods it looks like you can see below. Interestingly -- or no

Errors & Warnings Smart Group Missing from XCode 3.2

2009-08-31 Thread Peter Ferrett
I have installed XCode 3.2 from the Snow Leopard Disc and find that the Errors & Warnings smart group is missing. I cannot find any way to view a list of warnings during compile. Wondering if anyone else has experienced this & found a fix. __

refresh issue with QLPreviewPanel..!

2009-08-31 Thread Naresh Kongara
Hi, I have an app in which i need to display the view to be printed in QuickLook preview. For this i thought os using the (QlPreviewPanel)QuickLookUI.framework which is available at /System/ Library/PrivateFrameworks. QLPreviewPanel class is obtained using #define QLPreviewPanel NSClassF

Re: pulldown in custom NSCell

2009-08-31 Thread Georg Seifert
Hi corbin and Andreas, Both approaches look promising. I will play with them. Thanks Georg What I found is that the Cell, in its drawwithFrame method, adds subview to the TableView and this subview handles all the drawing and handling. Is this appropriate or is there a better solution.

Re: Build error

2009-08-31 Thread Roland King
1) read the error message and attempt to understand it 2) see if the error message applies and you have in fact included the product in its own target 3) if 1) and 2) don't work mail the XCode list because this isn't a cocoa question Mahaboob wrote: I changed the Active Build configuration

Build error

2009-08-31 Thread Mahaboob
I changed the Active Build configuration to Distribution and then select the code signing identity to my distribution profile as suggested in the iPhone Developer portal. Then I build the application. But,I got the following message: File /../.../.../...xxx.app depends on itself. This target might

Re: NSScroller width

2009-08-31 Thread Massimiliano Gargani
Thanks a lot, I had to subclass also the scroll view but it partially works. Now my code is: @implementation MyScroller + (CGFloat)scrollerWidth { return 40.0f; } + (CGFloat)scrollerWidthForControlSize:(NSControlSize)controlSize { return 40.0f; } - (void)drawRect:(NSRect)rect

system(root) locale

2009-08-31 Thread Maggie Zhang
Hi, Does anyone know how to get the root locale in Objective-c or C or using Unix commands? I tried NSLocale but it didn't give what I want. Though I can get the user's current locale in different ways. Thanks for you help. ___ Cocoa-dev mailing list (C

Re: _NSAutoreleaseNoPool missing in Snow Leopard

2009-08-31 Thread Jean-Daniel Dupas
Le 31 août 2009 à 02:27, Seth Willits a écrit : On Aug 30, 2009, at 2:05 PM, Keith Duncan wrote: Does anyone know what I *should* be breaking on? I'd obviously like to track this down. A fallback option is to break on NSLog/printf to see where that message is being output from, but you c

CGEventTap code fails on Snow Leopard

2009-08-31 Thread Rick Mann
Hi. A while back I wrote a little program to remap the right-side option key to be enter (on Al MacBook Pros). It works great, but since installing snow leopard, it runs for a while, then gets an unexpected event (type -2) and then never gets another event. It's pretty simple code. Only if

Re: Get error message about registered observers when Object receives dealloc message

2009-08-31 Thread Graham Cox
On 30/08/2009, at 7:46 PM, Andreas Grosam wrote: This is not exactly what I got in the console. Actually it is: "An instance 0xd21b60 of class MyObservee is being deallocated while key value observers are still registered with it. " Notice: "is being deallocated" This is also **exactly**