Hi All,
I've got an app that I'm creating NSTableColumn's on the fly and binding
them to an array controller. It all works fine but tonight I needed to
change one of the columns to have a NSButtonCell.
NSButtonCell *cell=[[[NSButtonCell alloc]init]autorelease];
[tc setDataCell:cell];
(tc is
On Aug 18, 2009, at 11:17 PM, PCWiz wrote:
Hi,
I need a good method to find the size of a file or folder exactly as
displayed in Finder. I've tried every method I could find on the
internet, from using the du shell utility with NSTask to using the
Carbon file manager. I need something
Le 19 août 2009 à 09:52, Charles Srstka a écrit :
On Aug 18, 2009, at 11:17 PM, PCWiz wrote:
Hi,
I need a good method to find the size of a file or folder exactly
as displayed in Finder. I've tried every method I could find on the
internet, from using the du shell utility with NSTask to
On Aug 19, 2009, at 2:59 AM, Jean-Daniel Dupas wrote:
I think you have to add data and resource sizes to match the Finder
behavior (which are two distinct field in the catalog info).
Ah, you're right. This probably makes Carbon's file manager the most
convenient way to do it (I believe
On 19 Aug 2009, at 02:30, bosco fdo wrote:
Hi all
I dont want in binaries('1', '0'),
but i want to convert int to bytes(byte value string)
for example in java working code when i convert int value 1 to byte
value in 4 square like chars(unreadable format)
the same thing i need to do in
On 19 Aug 2009, at 09:03, Charles Srstka wrote:
On Aug 19, 2009, at 2:59 AM, Jean-Daniel Dupas wrote:
I think you have to add data and resource sizes to match the Finder
behavior (which are two distinct field in the catalog info).
Ah, you're right. This probably makes Carbon's file manager
Le 19 août 2009 à 11:47, Charles Srstka a écrit :
On Aug 19, 2009, at 4:24 AM, Alastair Houghton wrote:
As I think I may have mentioned before, contrary to apparently
widespread opinion, Carbon isn't magic. The Carbon file manager
APIs are based on BSD APIs, and calling the BSD APIs in
PCWiz wrote:
I need a good method to find the size of a file or folder exactly as
displayed in Finder. I've tried every method I could find on the
internet, from using the du shell utility with NSTask to using the
Carbon file manager. I need something that will work under heavy load
(processing
Do you mean that you want to write an Objective-C wrapper to the C
library, or just group the C functions into an easily accessible place?
If your wrapping things in Objective-C, try not to change any of the C
library (of course tidying, and bug fixing as you go's allowed). Write
the
Resending because I never saw this appear in the list.
On 10/08/2009, at 21:51 , Brian Bruinewoud wrote:
I found the motivating example for this thread.
Files are:
http://media.pragprog.com/titles/amiphd/code/FileIO/FilesystemExplorer/Classes/DirectoryViewController.m
On Aug 19, 2009, at 4:24 AM, Alastair Houghton wrote:
As I think I may have mentioned before, contrary to apparently
widespread opinion, Carbon isn't magic. The Carbon file manager
APIs are based on BSD APIs, and calling the BSD APIs in question is
going to be faster if you really need
Hi all
Sorry if i am not clear.
But i need to group all binary format data together in my logic
for that i need to convert some integer to binary format(byte value?)
the below java code make the conversion correct
private byte[] int2bin(int i) {
byte[] value = new
Hi,
when fetching about 5000 objects from an sql store, Core Data is very
slow the very first time after a boot. When running the app the first
time it takes 50 to 90 seconds and when starting it the second time it
is well below one second.
What is going on here? Has anyone noticed this
On Aug 19, 2009, at 4:56 AM, Jean-Daniel Dupas wrote:
If you don't believe Carbon use the BSD API, just do a simple File
Manager based application, and check what append in Shark or other
sampling software when you run it, or even better, use DTrace to
check what syscall is used.
I just
On 19 Aug 2009, at 10:47, Charles Srstka wrote:
On Aug 19, 2009, at 4:24 AM, Alastair Houghton wrote:
As I think I may have mentioned before, contrary to apparently
widespread opinion, Carbon isn't magic. The Carbon file manager
APIs are based on BSD APIs, and calling the BSD APIs in
On 19 Aug 2009, at 10:56, Jean-Daniel Dupas wrote:
and that someone had benchmarked Cocoa vs. Carbon vs. BSD, and
Carbon came out on top. What I didn't remember was that it was you
who did it:
The last time I saw this kind of benchmark, the BSD code were poorly
implemented and did not
On 19 Aug 2009, at 11:14, Charles Srstka wrote:
I just tried it with Shark, and it appears not to be using the
standard BSD opendir and readdir APIs, but rather the proprietary to
Apple (as far as I can tell) getdirentriesattr API, which actually
does seem to have a man page now, which
On 19 Aug 2009, at 11:04, bosco fdo wrote:
Sorry if i am not clear.
But i need to group all binary format data together in my logic
for that i need to convert some integer to binary format(byte value?)
the below java code make the conversion correct
private byte[] int2bin(int i)
Indeed I did. I had not run outside the Xcode environment but it does
work as expected when run as a stand alone app.
On Aug 18, 2009, at 9:03 PM, Kyle Sluder wrote:
Sounds like you're breaking on objc_exception_throw, which is going
to happen when the exception is raised—and therefore
Hi There,
I have an NSOutlineView and what I want to happen is that when a row is
added I want the row that has been added to Start Editing immediately
like when you double click on a row.
I have had a go using the code below (but as I'm not that Confident with Cocoa)
it did not work.
-
On Aug 19, 2009, at 10:30 AM, Joshua Garnham wrote:
I have an NSOutlineView and what I want to happen is that when a row
is added I want the row that has been added to Start Editing
immediately
like when you double click on a row.
...
- (IBAction)add:(id)sender {
[treeController add:@New
On 8/19/09 6:52 AM, Michael Thon said:
I use mogenerator with great success. Which version are you using?
Try
getting the newest from version control.
I used version 1.5. I just found the svn repo and tried the latest
version. Works fine now.
Great. (However, I don't believe he uses svn
On 8/19/09 11:23 AM, Alastair Houghton said:
Carbon is usually a good way to go, because you don't need to check
the volume caps first
And in case people out there are thinking oh no! Carbon! boo!... Note
that the 'File Manager' isn't actually part of Carbon.framework but
rather
On 2009 Aug 05, at 19:48, Nick Zitzmann wrote:
The good news is, yesterday new debug profile libraries appeared
on ADC. Woohoo!
I have searched and searched the Apple website but can't find this.
Someone please post a link.
Also, if anyone has a link to or any tips on how to use a
When I compile and run my project, it crashes because of an illegal
memory access error. Just before the error occurs, the program logs the
following line:
objc[32305]: FREED(id): message set sent to freed object=0x53ffb850
.
The object at address 0x53ffb850 is the object that has the
Hello,
I am using an NSFetchedResultsCountroller to execute a query against a
Core Data database backed by a sqlite data store. I would like to sort
the results by an NSString property of my NSManagedObject. However, if
the property is nil or an empty string, I would like those results to
appear
Hi,
It would probably be a good idea to tell you guys some of the methods
I have tried. First of all, I've tried just using NSFileManager and
NSEnumerator to enumerate through the directory. This didn't add up
resource forks AND it didn't round up the sizes to Finder's 4KB
minimum block
I checked the Array Controller and it had the Avoid Empty Selection
setting checked. So I unchecked it, saved, and tried again. It still
doesn't work. And now I have another problem (once again, out of the
blue). I have it set to Select Inserted Objects in my Array
Controller, and objects
On Aug 19, 2009, at 11:39 AM, PCWiz wrote:
I checked the Array Controller and it had the Avoid Empty
Selection setting checked. So I unchecked it, saved, and tried
again. It still doesn't work. And now I have another problem (once
again, out of the blue). I have it set to Select Inserted
On Aug 19, 2009, at 8:23 AM, Korei Klein wrote:
The object at address 0x53ffb850 is the object that has the illegal
memory access error. What does this FREED line mean, and what does
it have to do with memory access problems?
You overreleased something and it is causing the crash.
Turn
Le 19 août 2009 à 17:29, PCWiz a écrit :
Hi,
It would probably be a good idea to tell you guys some of the
methods I have tried. First of all, I've tried just using
NSFileManager and NSEnumerator to enumerate through the directory.
This didn't add up resource forks AND it didn't round up
On Wed, Aug 19, 2009 at 8:48 AM, Bill Bumgarnerb...@mac.com wrote:
Turn on NSZombie mode.
More clarification, since from your confusion it sounds like you might
not know what this means:
NSZombie mode means that whenever an object's retain count drops to
zero, instead of freeing the memory held
On Wed, Aug 19, 2009 at 8:10 AM, Jerry Krinockje...@ieee.org wrote:
Also, if anyone has a link to or any tips on how to use a Debug and Profile
Library, that would be great. The last time I used one, I didn't see get
any messages logged and wasn't sure if my app was perfect or if I wasn't
Hi,
Here is the source code for the app in which I'm having issues with
making an empty selection in the NSTableView
Click here to download file
The app is compiled under the 10.5 SDK. It uses the BWToolkit
framework, so if you don't have its ibplugin installed then you may
need to get
You're going to need to do an in-memory sort of these objects. Your
suspicions about Core Data sorting are correct: when using the SQLite
store, it sends the sorting off to the database backend, where it's
far more efficient to do.
Have you thought instead of sorting on a dependent property of
Will those return the file sizes in 4KB block increments? Or will
that return the actual byte size? PCWiz is looking for the former.
Dave
On Aug 19, 2009, at 10:01 AM, Jean-Daniel Dupas wrote:
Use The Core Services File Manager API :
Link fail.
On Aug 19, 2009, at 10:03 AM, PCWiz wrote:
Hi,
Here is the source code for the app in which I'm having issues with
making an empty selection in the NSTableView
Click here to download file
The app is compiled under the 10.5 SDK. It uses the BWToolkit
framework, so if you
On 8/19/09 8:10 AM, Jerry Krinock said:
On 2009 Aug 05, at 19:48, Nick Zitzmann wrote:
The good news is, yesterday new debug profile libraries appeared
on ADC. Woohoo!
I have searched and searched the Apple website but can't find this.
Someone please post a link.
You can get it from
On Aug 19, 2009, at 9:10 AM, Jerry Krinock wrote:
I have searched and searched the Apple website but can't find this.
Someone please post a link.
Go to http://connect.apple.com/, log in using your Apple ID, go to
Downloads, go to Developer Tools, and search on the page for profil
until
It will returns what you ask for.
Catalog info can contain physical data/rsrc size and logical data/rsrc
size.
Le 19 août 2009 à 18:07, Dave DeLong a écrit :
Will those return the file sizes in 4KB block increments? Or will
that return the actual byte size? PCWiz is looking for the
Oops, my bad
Here's the link:
http://rapidshare.com/files/269163555/BeastClone.zip.html
:-)
On 2009-08-19, at 10:08 AM, Dave DeLong wrote:
Link fail.
On Aug 19, 2009, at 10:03 AM, PCWiz wrote:
Hi,
Here is the source code for the app in which I'm having issues with
making an empty
On Aug 19, 2009, at 4:13 AM, Ruotger Skupin wrote:
when fetching about 5000 objects from an sql store, Core Data is
very slow the very first time after a boot. When running the app the
first time it takes 50 to 90 seconds and when starting it the second
time it is well below one second.
Well, I sort dynamically on different properties so an explicit
sortIndex wouldn't be ideal. But the lack of normalization just might
work. I could create a boolean field which basically acts as
'hasProperty'. I can then hook into -willSave of the NSManagedObject
to set that to YES or NO
Am 19.08.2009 um 18:38 schrieb Nick Zitzmann:
On Aug 19, 2009, at 4:13 AM, Ruotger Skupin wrote:
when fetching about 5000 objects from an sql store, Core Data is
very slow the very first time after a boot. When running the app
the first time it takes 50 to 90 seconds and when starting it
PCWiz wrote:
The next thing I tried was using the Carbon File Manager API
using this method by Dave DeLong:
http://github.com/davedelong/BuildCleaner/blob/b2712242b4eea1fff0e78a08b393a417e3019c8a/NSFileManager+FileSize.m
This method worked for some folders/files, but for others it returned
On Aug 19, 2009, at 1:14 PM, Ruotger Skupin wrote:
I debugged it with some Snow Leopard magic and found out, that
firing faults is very slow the first time after boot. When I use -
[NSArray filteredArrayUsingPredicate:] the fault firing is killing me.
So I recoded it to fetch everything
At 21:54 -0700 18/08/09, cocoa-dev-requ...@lists.apple.com wrote:
From: PCWiz pcwiz.supp...@gmail.com
Date: Tue, 18 Aug 2009 21:17:30 -0700
Message-ID: 9c08262c-4924-4840-8ca3-f4548db20...@gmail.com
I need a good method to find the size of a file or folder exactly as displayed
in Finder. I've
Hi There,
I have an NSOutlineView and what I want to happen is that when a row is
added I want the row that has been added to Start Editing immediately
like when you double click on a row.
I have had a go using the code below (but as I'm not that Confident with Cocoa)
it did not work.
-
Hey,
I've got an application that basically simulates a keyboard using
CGEvents with CGKeyCodes. However, because CGKeyCodes only map the
position of the key on a keyboard, and not the actual key, I've run
into some issues. Is there an easy way to detect the type of keyboard
they have,
This seems to be a bug with Snow Leopard, or Snow leopards developer
tools. I took the same project, and then compiled and ran it on
Leopard, the issue does not exist. I'm not sure why this is happening.
Thanks
On 2009-08-19, at 10:08 AM, Dave DeLong wrote:
Link fail.
On Aug 19, 2009, at
Am 19.08.2009 um 19:18 schrieb I. Savant:
Hmm ... time to hit the books if you haven't already:
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdPerformance.html#/
/apple_ref/doc/uid/TP40003468
Have you tried anything suggested there?
Fetch Limits: Not
On Wed, Aug 19, 2009 at 10:31 AM, Joshua
Garnhamjoshua.garn...@yahoo.co.uk wrote:
The line - [outlineView rowForItem:(id)@New Item];
Is supposed to give the row number of the added row to the next line
If you believe this to be the case, you need to go back over the
language basics. This
I've been trying to get a fairly simple and well documented
transition: CIPageCurlTransition to work in my app, but the results
are awful. Non filter transitions like kCATransitionFade work fine,
but when I try to use a CAFilter for the transition the best I get is
dome chopped up image
On Aug 18, 2009, at 4:53 PM, Jonathon Kuo wrote:
Hmm, that's kind of a harsh environment... The notification
mechanism is great for the purpose of controlling bloat, but doesn't
tell you how much VM you have to play with at the outset. I suppose
all I can do is *try* to alloc() and if it
Ruotger,
Interestingly enough, I experienced this behavior in my latest app
which doesn't use Core Data. It uses SQLite directly instead. I
recalled I had experienced this a long time ago (years ago) and
someone (I don't remember who and where) mentioned a solution/
workaround/hack, which
hi-
A little OT, but for Cocoa/IB development, just a quick FYI:
http://www.macresearch.org/vvidget-fixes-invasive-property-new-
deployment-options
Vvidget Fixes Invasive Property With New Deployment Options
for people that might be interested.
Also, FYI:
cd
Maybe this is the Challenge of the Day. In debugging my undo grouping
issue, I've replaced NSUndoManager's -beginUndoGrouping and -
endUndoGrouping with methods that log whenever they're invoked. I
suppose I could do this be setting breakpoints and debugging, but I've
always trusted
Folks,
This sounds like Rosetta. If you are seeing this on an intel machine,
and if _any_ code in the execution path is non-intel, then Rosetta
will startup, blocking until ready.
I have an app called Rosetta Booster; when set as a login item,
Rosetta is engaged, initialized, and ready to
On Aug 19, 2009, at 3:09 PM, M Pulis wrote:
This sounds like Rosetta. If you are seeing this on an intel
machine, and if _any_ code in the execution path is non-intel, then
Rosetta will startup, blocking until ready.
I'm not sure how you've arrived at this conclusion based on the
On Aug 19, 2009, at 10:54 AM, Evan Moseman wrote:
I've been trying to get a fairly simple and well documented
transition: CIPageCurlTransition to work in my app, but the results
are awful. Non filter transitions like kCATransitionFade work fine,
but when I try to use a CAFilter for the
Can anyone tell me how to calculate what window the cursor is
currently hovering over, at any given moment?
This sounds like a very simple bit of code, but it has stumped me and
a number of other developer friends.
My application has document windows and panels. One the panel is a
There seems to be a bug in NSTableView handling with Snow Leopard.
It's not a problem with the dev tools themselves, rather the way the
operating system handles the table view object.
When using a NSTableView with the Source List style, you cannot make
an empty selection with the table
On Aug 19, 2009, at 1:39 PM, PCWiz wrote:
There seems to be a bug in NSTableView handling with Snow Leopard.
And the first rule of Fight Club is...
(Note: You can talk about the cat at http://devforums.apple.com/;
just not here yet.)
Nick Zitzmann
http://www.chronosnet.com/
I've been noticing this for a little while now. For some wacky reason,
the thread that tickles default buttons and progress indicators to
update is somehow no long working in my app. Default buttons don't
pulsate and the progress indicators don't spin. The GUI is fully
responsive
(1) The subject: Re: Core Data dog-slow when using first time after
boot
(2) contains the key phrase dog slow when using first time after boot
(3) I know that Rosetta only starts once and takes a lot of time,
but not until the first non-native code hits.
(4) also, one post from tito
when fetching about 5000 objects from an sql store, Core Data is very
slow the very first time after a boot. When running the app the first
time it takes 50 to 90 seconds and when starting it the second time it
is well below one second.
Properly done, you could fetch 5000 objects on an original
On Aug 19, 2009, at 3:55 PM, M Pulis wrote:
(5) tito was close with warmupfile workaround (is sqlite native???)
Is SQLite native seems to be the one point on which all your
others hinge. I'd be dutifully surprised if it were not.
--
I.S.
Interestingly enough, I experienced this behavior in my latest app
which doesn't use Core Data. It uses SQLite directly instead. I
recalled I had experienced this a long time ago (years ago) and
someone (I don't remember who and where) mentioned a solution/
workaround/hack, which involves reading
On Aug 19, 2009, at 1:05 PM, I. Savant wrote:
On Aug 19, 2009, at 3:55 PM, M Pulis wrote:
(5) tito was close with warmupfile workaround (is sqlite native???)
Is SQLite native seems to be the one point on which all your
others hinge. I'd be dutifully surprised if it were not.
It is
On Aug 19, 2009, at 4:56 PM, Bill Bumgarner wrote:
Is SQLite native seems to be the one point on which all your
others hinge. I'd be dutifully surprised if it were not.
It is flat out impossible. A task -- a running program -- is either
all PPC or all Intel or all 32 bit or all 64 bit.
I am simply trying to set an NSImageView to an NSImage. I'm certain
i'm doing the right methods, but alas, no images show.
Suggestions ?
Thanks in advance.
jack
boxPic is an IBOutlet connected to the NSImageView in the NIB.
-(void)setImage:(NSImage *)newImage;
{
NSLog(@Incoming image:
Are you sure the outlet hasn't gotten disconnected? Or maybe you
connected it, then changed the name of the outlet in Xcode? That's
the output you would see if the outlet were null.
Dave
On Aug 19, 2009, at 3:15 PM, Jack Carbaugh wrote:
I am simply trying to set an NSImageView to an
Hi,
I have made a short screen recording of my issue:
http://www.flickr.com/photos/christophercjensen/3837784580/
As you might notice, I have an NSDictionaryController MetaData which
has it's contents set to an NSMutableDictionary metadata.
My window has a NSTableview with two columns:
The sqlite question was a reference to tito saying his experience was
years ago when the possibility of a non-native sqlite on an intel
machine was absolutely real and significantly less surprising. You may
know, but I have no idea what versions are installed on any given
system, much less
I have an offscreen window containing a WebView that I'm using to
generate web previews. My current code works beautifully and looks
like this:
NSView *view = previewWebView.mainFrame.frameView.documentView;
NSRect targetRect = view.bounds;
On Aug 19, 2009, at 2:21 PM, M Pulis wrote:
The sqlite question was a reference to tito saying his experience
was years ago when the possibility of a non-native sqlite on an
intel machine was absolutely real and significantly less surprising.
You may know, but I have no idea what versions
On Aug 19, 2009, at 2:21 PM, M Pulis wrote:
responders, etc (you can execute PPC frameworks onto an Intel
machine, yes?)
No, not from an native app.
Sorry 'bout that.
Extremely unlikely that Rosetta is the OP's problem unless there
is something like a helper app that is getting
100% certain it is connected in the xib.
On Aug 19, 2009, at 5:19 PM, Dave DeLong wrote:
Are you sure the outlet hasn't gotten disconnected? Or maybe you
connected it, then changed the name of the outlet in Xcode? That's
the output you would see if the outlet were null.
Dave
On Aug
On Aug 19, 2009, at 14:21, Christopher Campbell Jensen wrote:
Column 2 is set to be pop up cells and is bound to
MetaData.arrangedObjects.value
You've missed something, either in your problem description or in your
code. A popup cell is going to involve (at a minimum) 2 bindings: one
to
On Aug 19, 2009, at 14:31, Jack Carbaugh wrote:
100% certain it is connected in the xib.
That's not proof it's connected (yet) at the time 'setImage:' is
invoked. Log the value of 'boxPic' too, and I bet it will be nil.
___
Cocoa-dev mailing
You are correct. Logging of boxPic is indeed null.
How do i proceed then?
here is a snippet of the code ...
aWindowController *theWindowController = [[aWindowController alloc]
initWithMyName:[who name]];
// snip several assignments to theWindowController
if ( [[who serverItems]
You're probably calling setImage: before the nib is loaded (and so the
outlet is connected).
You can force it to load by calling [aWindowController window] before
trying to set the image.
Le 20 août 2009 à 00:39, Jack Carbaugh a écrit :
You are correct. Logging of boxPic is indeed null.
On Aug 19, 2009, at 5:21 PM, M Pulis wrote:
You may know, but I have no idea what versions are installed on any
given system, much less the OP's, responders, etc (you can execute
PPC frameworks onto an Intel machine, yes?) what frameworks are in
play, etc; and simply pose the question.
On Aug 19, 2009, at 6:49 PM, Jean-Daniel Dupas wrote:
You're probably calling setImage: before the nib is loaded (and so
the outlet is connected).
You can force it to load by calling [aWindowController window]
before trying to set the image.
The standard practice is to start any
I was just looking up the documentation to remind myself of the
difference between isEqual: and isEqualTo: and saw that for your own
custom objects to behave nicely in a collection, it apparently needs
to override both isEqual: and hash.
But when I look at the specific documentation for
An NSView's bounds can be set to a different size than its frame,
which results in a transform being applied to the graphics context as
the view is drawn. How is this supposed to affect subviews if the view
is layer backed?
If I set my view's bounds to have half the width of its frame, all
What happens if you include this log to your setImage method?
NSLog(@image view: %@, boxPic);
Also, rather than logging you should see if you can find the time to
learn to use the debugger. It's much more efficient than printf
debugging.
Good Luck -
Jon Hess
On Aug 19, 2009, at 2:31 PM,
I've not used CGEvents much.. (Once upon a time, hopefully never
again) but if I remember rightly CGKeyCodes are equivalent to NSEvent
keyCodes*. If not you can easily convert between the two using: +
(NSEvent *)eventWithCGEvent:(CGEventRef)cgEvent.
Have a look at this:
I'm trying to integrate OCUnit unit tests more fully with our
continuous integration system. Out of the box, Hudson supports test
output in the xUnit XML format produced by JUnit, CppUnit, nose (a
python test framework), etc. Is there any way to get otest to produce
this XML formatted output? If
On Wed, Aug 19, 2009 at 4:28 PM, Gideon Kinggid...@novamind.com wrote:
So do I need to override hash too? If so, are there any recommendations as
to how to determine the hash easily?
You need to override -hash for the simple reason that the
documentation says you need to override -hash. That
Hey Jack -
That means that either the outlet isn't connected, or the NIB hasn't
been loaded yet when setImage: is called.
Also, are you sure you aren't creating more instances of your class
than you think you are? A common mistake is to instantiate the class
in code, and tell it to load
On Aug 19, 2009, at 5:05 PM, Seth Willits wrote:
I've completely stripped this project down to the absolute bare
bones and it shows this bug. Simply launch the app. You'll see that
the default button in the window is NOT plusating like it should be,
and if you click it, you'll see that the
As others have suggested ... the NIB had not been fully loaded and
ready for my changes. As a test, i modified the image view in
awakeFromNib and things worked marvelously.
Thank you for the help!
I knew it had to be something simple that i was missing.
Jack
On Aug 19, 2009, at 8:37 PM,
On Aug 19, 2009, at 2:50 PM, Ben Lachman wrote:
I have an offscreen window containing a WebView that I'm using to
generate web previews. My current code works beautifully and looks
like this:
NSView *view = previewWebView.mainFrame.frameView.documentView;
I do something
On Aug 19, 2009, at 4:28 PM, Gideon King wrote:
So do I need to override hash too? If so, are there any
recommendations as to how to determine the hash easily?
If you need to override -isEqual: to provide something besides pointer
comparison, you should also override -hash. If objects are
I have an app that needs to work across recent OS X versions. It
links in the libcrypto.dylib, which is of course an alias.
Path: /usr/lib/libcrypto.dylib
Full Path: /usr/lib/libcrypto.0.9.x.dylib (anonymized to respect
NDAs)
App works fine on the dev machine with the newer OS X
On Aug 19, 2009, at 4:28 PM, Gideon King wrote:
So do I need to override hash too? If so, are there any
recommendations as to how to determine the hash easily?
Sorry, just came across this thread that has some more tips:
No offense taken... as you saw, I have no problem even proving myself
wrong to correct my postings.
I suggested testing for the possibility of non-native code. Warming up
Rosetta was NOT presented not as a solution but an aid to test the
presence of rather than assuming not. My ego
Excellent, thanks for that - in my case I only have up to about a
dozen objects in my array, so I'll just return 0 for the hash and let
it fall back to isEqual:. I see that some of the Omni classes do that
too...
In other cases where I make few changes but do lots of comparisons, I
might
On Aug 19, 2009, at 4:28 PM, Gideon King wrote:
So do I need to override hash too? If so, are there any
recommendations as to how to determine the hash easily?
I probably shouldn't admit this, but I've yet to override hash and
have yet to notice any problems. The docs say I should, so I
1 - 100 of 115 matches
Mail list logo