Is there a way to find out if a particular exception being thrown will
be caught by a @catch handler further down the code, and if this
handler is top-level or not? By top-level I mean the handler on the
NSApplication level.
I'm trying to build a reliable handler of uncaught exceptions that
shuts
Aha thanks.. I will check that out..
Maybe it will give me an Idea of what Im missing, I I can't figure it out,
then I will be using his framework.
On Mar 2, 2010, at 10:49 PM, Sean McBride wrote:
> On 3/2/10 9:28 PM, Gustavo Pizano said:
>
>> Have somebody used aperture? well if so, in the fi
happy to help.
On Mar 2, 2010, at 9:26 AM, Tilo Villwock wrote:
> Finally! That did the trick, thanks a lot! Does make sense though, the
> coordinates I used originally of course refer to the NSView insets and not to
> the ones from each NSCell, which is why all Strings were in same place.
>
On 2 Mar 2010, at 04:03, Markus Spoettl wrote:
> On Mar 1, 2010, at 2:42 PM, Thomas Davie wrote:
>> However, when the user clicks on item B after clicking on item A,
>> setSelected:NO is *not* sent to the NSCollectienViewItem subclass for A.
>> This displeases me greatly :(.
>
>
> Works fine
On Mar 2, 2010, at 10:18 PM, Jeff Johnson wrote:
> Thus, Apple's documentation gives every reason to believe that it is safe to
> use NSXMLDocument off the main thread, but libxml's documentation gives every
> reason to believe that it is not safe.
Treat NSXMLDocument as a black box and follow
My question is, how do I use NSXMLDocument safely on a non-main thread? I need
to do this for performance reasons, otherwise my app can pinwheel during XML
parsing.
NSXMLDocument uses libxml. This can be verified in the debugger. Here's the
thread safety documentation for libxml:
http://xmlsof
Jonathan,
That was the answer. I've used this method in other places in the app where I
have used my own pasteboard types, but I somehow thought (probably from the
name of the method) that I didn't need it if I was using a built-in pasteboard
type.
Anyway, thanks again!
Martin
On Mar 1, 20
On Mar 2, 2010, at 6:53 PM, Steven Degutis wrote:
> Few simple steps:
>
> (1) Create a subclass of NSWindowController and override -init to call
> super's -initWithWindowNibName:, passing something like @"MyWindow"
> (2) Create a XIB file with the filename called MyWindow
> (3) Change File's Own
Hello list,
I'm currently trying to use an NSNumberFormatter to format the text of
a UITextField, so that as a user enters numbers into a text field, I
can apply currency-style formatting to the text (ex. add a properly
localized currency symbol/number separators). Currently I'm
implementing -tex
Hi,
I am currently trying to implement element blocking into my opensource Safari
adblocker project:
http://code.google.com/p/safariadblocker/
And I was thinking of taking the approach, of feeding a javascript function to
Safari:
function hide_elements(id)
{
document.getElementById(id).style.
Sean hello.
Im not expert in this, but I had the same problem when making my own NSCell
subclass to display a name and a picture next to it.. So in your NSCell
subclass in the method - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView
*)controlView print(draw) your items in the cellFrame y p
On 2 Mar 2010, at 14:39, Markus Spoettl wrote:
> On Mar 2, 2010, at 3:36 AM, Thomas Davie wrote:
>>> On Mar 1, 2010, at 2:42 PM, Thomas Davie wrote:
However, when the user clicks on item B after clicking on item A,
setSelected:NO is *not* sent to the NSCollectienViewItem subclass for A
Few simple steps:
(1) Create a subclass of NSWindowController and override -init to call
super's -initWithWindowNibName:, passing something like @"MyWindow"
(2) Create a XIB file with the filename called MyWindow
(3) Change File's Owner to your recent subclass
(4) Connect the -window outlet of you
On Feb 26, 2010, at 11:50 PM, Gideon King wrote:
I'm having another look at an issue I posted about a couple of weeks
ago, where Save As was causing an error.
On my project I noticed the following anomaly. Add a managed object to
the store, save the file, then save the file as another name.
Please help, I'm still a bit fuzzy on how to open a window in Cocoa/
ObjC. I realize there's a correlation between a nib, the window you
design(ed) in IB, and the .h/.m files for the controller class, but
how do you actually USE this stuff? i.e. If I wanted to make a window
in REALbasic, I w
Last time I looked into this (a couple of years ago), an external
library was all I came up with.
_murat
On Mar 2, 2010, at 4:52 PM, Graham Cox wrote:
I'm looking for hints, code or anything at all that will let me
write a layered TIFF file from Cocoa. There are a few mentions in
the arch
I'm looking for hints, code or anything at all that will let me write a layered
TIFF file from Cocoa. There are a few mentions in the archives but nothing
concrete. Can Cocoa be made to support this, or do I need to use an external
TIFF library?
--Graham
__
Thanks Graham! Your insights are always helpful.
-db
On Mar 2, 2010, at 4:26 PM, Graham Cox wrote:
Hi David,
You'd probably be better off making Files Owner a subclass of
NSWindowController, as it is controlling a window. (That it's a
panel is not a reason not to). While in this case th
On Mar 2, 2010, at 3:32 PM, Eric Gorr wrote:
Is there any way to determine how a window was closed?
I need to base what I do on whether or not a window will be closed
by the user pressing the close (red) button or some other way.
If you have an NSWindow subclass, you can override -performCl
On 2 Mar 2010, at 23:32, Eric Gorr wrote:
> Is there any way to determine how a window was closed?
>
> I need to base what I do on whether or not a window will be closed by the
> user pressing the close (red) button or some other way.
>
> One thing I did try was:
>
> NSB
Is there any way to determine how a window was closed?
I need to base what I do on whether or not a window will be closed by the user
pressing the close (red) button or some other way.
One thing I did try was:
NSButton *closeButton = [[self window]
standardWindowButton:
Hi David,
You'd probably be better off making Files Owner a subclass of
NSWindowController, as it is controlling a window. (That it's a panel is not a
reason not to). While in this case the advantage is likely to me minimal, it's
probably good practice to get into using the right object for the
>
> The custom store seems like the most probable source of issues. One source
> of problems I've seen is when a custom store doesn't handle either the
> metadata or the objectIDs correctly. The store UUID and the object's IDs
> need to be stable (e.g. if we ask your store for its UUID, it do
On 2 Mar 2010, at 3:53 PM, David Blanton wrote:
> I have a nib file named Hoops.
> In this nib is an NSPanel.
> Outlets and Actions are defined in Files Owner and connected to the Panel.
> In code I create an object that has the corresponding Outlets / Actions as
> File's Owner.
> I then loadNibN
I inadvertently set a view in the nib to the class I was instancing.
Sorry for the noise.
-db
On Mar 2, 2010, at 2:53 PM, David Blanton wrote:
I have a nib file named Hoops.
In this nib is an NSPanel.
Outlets and Actions are defined in Files Owner and connected to the
Panel.
In code I
On 2 Mar 2010, at 3:12 PM, Jean-Denis Muys wrote:
> I have a domain class with a number of fields, most of them NSString, but a
> few NSDate, int and BOOL, for example
>
> @interface Stuff : NSObject {
> NSString *name;
> NSDate *when;
> int *size;
> BOOL *grownUp;
> }
>
> @property (nonato
I have a nib file named Hoops.
In this nib is an NSPanel.
Outlets and Actions are defined in Files Owner and connected to the
Panel.
In code I create an object that has the corresponding Outlets /
Actions as File's Owner.
I then loadNibNamed:owner with owner as the object just created.
On 3/2/10 9:28 PM, Gustavo Pizano said:
>Have somebody used aperture? well if so, in the filter panel, the PopUp
>buttons that appear there are black, and the background of the menu is
>black as well.
1) File a radar asking Apple to provide these HUD style controls.
2) See if BWToolKit does what
> I'm having another look at an issue I posted about a couple of weeks ago,
> where Save As was causing an error. At the time, I was using a custom managed
> object context. I have now reverted to a standard managed object context. I
> do not create or release this managed object context anywher
Hello,
I've got a very simple launch Agent that always shows up as not-responding in
the activity monitor on 10.4 and 10.5 This is issue does not happen on 10.6.
The app is very simple and does not do much. It has no UI but does link against
Carbon since it uses GetNextProcess. It has 2 threads
Hi,
In my latest app, I wrote the property setters for some model classes as taking
a different argument type than the type returned by the getters.
I don't feel totally comfortable with that, so I would appreciate some
feedback. Here is what I did and why.
I have a domain class with a number
Hello.
Have somebody used aperture? well if so, in the filter panel, the PopUp buttons
that appear there are black, and the background of the menu is black as well.
I was trying to achieve something alike, but I hadn't done it. I was able to
subclass NSPopUpButton, and override the drawRect meth
On Mar 2, 2010, at 10:52 AM, Thomas Davie wrote:
> The NSCollectionView certainly *thought* it was being deselected – if the
> user clicks A, then A again, only one setSelected:YES gets sent, if the user
> clicks A, then B, then A again, setSelected:YES gets sent to A twice and B
> once.
>
> I'
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.
Austria
Graz - Monday, March 15, 2010 19:00
Wien - Thursday, March 11, 2010 19:00
Canada
Ottawa/Gatineau, O
Hi there,
I¹ve been trying to implement a webkit plugin in Snow Leopard, and I can¹t
seem to get the plugin to actually work. I tried using the 10.5 version of
WebKitMoviePlugin (compiled as a 32/64-bit Universal), and I¹ve found the
following interesting anomalies (but the plugin doesn¹t work)
On Mar 2, 2010, at 3:36 AM, Thomas Davie wrote:
>> On Mar 1, 2010, at 2:42 PM, Thomas Davie wrote:
>>> However, when the user clicks on item B after clicking on item A,
>>> setSelected:NO is *not* sent to the NSCollectienViewItem subclass for A.
>>> This displeases me greatly :(.
>>
>>
>> Work
Just wanted to update everyone on this issue; I've done some experimentation
with this, and I've found that binding to "selection" with NSIsNotNil
transformer does not reliably work, but binding to "selectedobjec...@count"
does work. (And by "work" I mean be disabled when the table has no
selection
Hi Keary
Thank you for your answer. I manage to have that working yesterday night yes.
That wrapping behaviour around this binding must also explain why all other
techniques failed.
Eric.
On 2010-03-01, at 11:23 PM, Keary Suska wrote:
>
> On Mar 1, 2010, at 7:26 AM, Eric Giguere wrote:
>
>
Finally! That did the trick, thanks a lot! Does make sense though, the
coordinates I used originally of course refer to the NSView insets and not to
the ones from each NSCell, which is why all Strings were in same place.
Thanks again.
Tilo
Am 02.03.2010 um 08:56 schrieb Gustavo Pizano:
> Sean
39 matches
Mail list logo