Re: ATTR_CMN_CHGTIME

2010-03-22 Thread gMail.com
Hi Ron,
You speak about the modification date of the "content of the file".
I am speaking about the modification date of the "attributes of the file".
It gets modified when you change the ownership or the permissions or the
lock flag...

You can get it with lstat and sb.st_ctime or with FSSetCatalogInfo and
kFSCatInfoAttrMod or with getattrlist and ATTR_CMN_CHGTIME

Regards
--
Leonardo

> Da: Ron Fleckner 
> Data: Mon, 22 Mar 2010 10:20:44 +1100
> A: "gMail.com" 
> Cc: 
> Oggetto: Re: ATTR_CMN_CHGTIME
> 
> 
> On 22/03/2010, at 10:01 AM, gMail.com wrote:
> 
>> Hi,
>> I cannot find a Cocoa API to set the "Attribute Modification Date"
>> of a
>> file. If there is a way, may you please let me know?
>> 
>> In the meantime, on MacOS X 10.5.8, I have been trying to use
>> setattrlist
>> with ATTR_CMN_CHGTIME, unsuccessfully. And setattrlist  returns 0, as
>> everything went ok. While it is not ok. Even FSSetCatalogInfo with
>> kFSCatInfoAttrMod doesn't work. I get the current date/time I call
>> the API,
>> not the date/time I have set.
>> 
>> So my question is:
>> Can I really set the ATTR_CMN_CHGTIME on MacOS X 10.5.8 or higher?
>> 
>> Also, the man says that getattrlist and setattrlist don't work on
>> all the
>> volumes. So, how can I know whether I can call these APIs?
>> 
>> 
>> Thanks
>> --
>> Leonardo
> 
> Hi Leonardo,
> 
> the Cocoa way, I suppose, is to use NSFileManager.  Looks like you can
> use setAttributes:ofItemAtPath:error: with an NSDate value for
> NSFileModificationDate.
> 
> Ron
> 


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ATTR_CMN_CHGTIME

2010-03-22 Thread Ken Thomases
On Mar 21, 2010, at 6:01 PM, gMail.com wrote:

> Also, the man says that getattrlist and setattrlist don't work on all the
> volumes. So, how can I know whether I can call these APIs?

The man page for getattrlist says:

> The best way to test whether a volume supports this function is to simply 
> call it and check the error result.  getattrlist() will return ENOTSUP if it 
> is not supported on a particular volume.

The man page for setattrlist says:

> Not all volumes support setattrlist().  However, if a volume supports 
> getattrlist(2), it must also support setattrlist().  See the documentation 
> for getattrlist(2) for details on how to tell whether a volume supports it.

It also says:

> The functions are only supported by certain volume format implementations.  
> For maximum compatibility, client programs should use high-level APIs (such 
> as the Carbon File Manager) to access file system attributes. These 
> high-level APIs include logic to emulate file system attributes on volumes 
> that don't support setattrlist() and fsetattrlist().

Cheers,
Ken

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Merge changes between two Managed Object Contexts

2010-03-22 Thread Joanna Carter
Hi Austin

> Thank you Joanna, that was very helpful.  So, from your experience, 
> mergeChangesFromContextDidSaveNotification: will not pick up adding a new 
> object, just editing an existing one?  It seems like the real pain point is 
> having to re-create the new object in the second managedObjectContext and 
> copy all it's properties.

My tutorial is meant to demonstrate several different techniques, to give 
people an idea of what is available, especially if they are coming from a 
different programming language.

I included the routine for copying the object contents, possibly because I too 
came across Tim Isted's blog and, at the time, thought that was what was 
necessary to ensure that object properties were populated from the correct MOC.

However, I have just checked and found that you can, indeed, use the same 
methodology for both editing and adding a new object. Here is some revised code 
that you can use in place of the sheetDidEnd:returnCode:contextInfo: method in 
the tutorial.

- (void) sheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode 
contextInfo:(void *)contextInfo
{
  // we are only interested in doing something with the edited word
  // if the Save button was pressed
  if (returnCode == NSOKButton)
  {
NSNotificationCenter *dnc = [NSNotificationCenter defaultCenter];

[dnc addObserverForName:NSManagedObjectContextDidSaveNotification
 object:managedObjectContext
  queue:nil
 usingBlock:^(NSNotification *saveNotification)
 {
   [[sourceListController managedObjectContext] 
mergeChangesFromContextDidSaveNotification:saveNotification];

   [sourceListController fetch:nil];
 }];

NSError *error;

if (![managedObjectContext save:&error])
{
  NSLog(@"Error saving edited Word");
}

[dnc removeObserver:self
   name:NSManagedObjectContextDidSaveNotification
 object:managedObjectContext];
  }
  else
  {
// Cancel button pressed -
// rollback any changes to the temporary context
[managedObjectContext rollback];
  }
  
  // close the dialog
  [sheet orderOut:self];
  
  // clear temporary object from controller
  [wordController setContent:nil];
}

The only real difference here is that, within the callback block, you need to 
call [sourceListController fetch:nil] to ensure that the original browsing list 
is not just refreshed but that the sort descriptors are honoured to include the 
new object.

Regards

Joanna

--
Joanna Carter
Carter Consulting

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ATTR_CMN_CHGTIME

2010-03-22 Thread gMail.com
Hi Ken,
thanks, I have read those lines on the man. But where are these Carbon APIs
setting the Attribute Date? I tried FSSetCatalogInfo with kFSCatInfoAttrMod
and it didn't work. I ended up with an attribute date equal to the current
time (when I called the API), not the date I wanted to set.

On the man page "getattrlist"
http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPag
es/10.5/man2/getattrlist.2.html?useVersion=10.5
is clearly written that the ATTR_CMN_CHGTIME flag is read/write, so I should
be able to set it. But I can't really. And setattrlist returns 0, as
everything has been set well, while it has been not.

Furthermore, on the man page "setattrlist"
http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPag
es/10.5/man2/setattrlist.2.html?useVersion=10.5
is written "You must own the file system object in order to set any of the
following attributes:" ATTR_CMN_GRPID, ATTR_CMN_ACCESSMASK, ATTR_CMN_FLAGS,
ATTR_CMN_CRTIME, ATTR_CMN_MODTIME, ATTR_CMN_CHGTIME, ATTR_CMN_ACCTIME

I don't know whether I own this "file system object". I don't even know
what's that and how should I own it, but for sure, I can quite set the
ATTR_CMN_CRTIME and the ATTR_CMN_MODTIME, so I presume I own this "file
system object".

Any idea?
--
Leonardo



> Da: Ken Thomases 
> Data: Mon, 22 Mar 2010 03:35:52 -0500
> A: "gMail.com" 
> Cc: 
> Oggetto: Re: ATTR_CMN_CHGTIME
> 
> On Mar 21, 2010, at 6:01 PM, gMail.com wrote:
> 
>> Also, the man says that getattrlist and setattrlist don't work on all the
>> volumes. So, how can I know whether I can call these APIs?
> 
> The man page for getattrlist says:
> 
>> The best way to test whether a volume supports this function is to simply
>> call it and check the error result.  getattrlist() will return ENOTSUP if it
>> is not supported on a particular volume.
> 
> The man page for setattrlist says:
> 
>> Not all volumes support setattrlist().  However, if a volume supports
>> getattrlist(2), it must also support setattrlist().  See the documentation
>> for getattrlist(2) for details on how to tell whether a volume supports it.
> 
> It also says:
> 
>> The functions are only supported by certain volume format implementations.
>> For maximum compatibility, client programs should use high-level APIs (such
>> as the Carbon File Manager) to access file system attributes. These
>> high-level APIs include logic to emulate file system attributes on volumes
>> that don't support setattrlist() and fsetattrlist().
> 
> Cheers,
> Ken
> 


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: I am Getting 2 Preferences Files

2010-03-22 Thread Citizen
From my observations the com..name>.LSSharedFileList.pList files are written out (well, actually  
renamed and moved from a temporary file) by a background process  
within a second of the application quitting. This does appear to be  
normal behavior under Snow Leopard, but does not appear to be  
documented.


On 15 Mar 2010, at 02:41, Peter Zegelin wrote:



I have just noticed that after recently upgrading to Snow Leopard  
the application I am working on is generating a second preference  
file. This prefs file is called com.xxx.myApp.LSSharedFileList.pList  
and gets generated when I open a new file. It is apparently used to  
populate the Open Recent menu. I have noticed that Preview, TextEdit  
and probably a few other apps from Apple also generate this file so  
is the new normal?


- Dave

--
David Kennedy (http://www.zenopolis.com)

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


re: CoreData database sharing and migration

2010-03-22 Thread Steve Steinitz

Hi Ben,

Thank you for your detailed and candid reply.  I have some 
comments and questions on a few points, below...


On 18/3/10, Ben Trumbull wrote:


there wasn't a good solution for multiple machines simultaneously
accessing an SQLite db file (or most other incrementally updated
binary file formats).  By "good" I mean a solution that worked
reliably and didn't make other more important things work less well.


I'm curious about the reliability issues you saw.  Also, by less 
well do you mean slower?



NFS is just not a free Oracle.


That's a great sound bite.

But to be clear, database cost is not the issue.  We're not all 
cheapskates looking to save a buck on our database :)  The real 
issue is that Core Data works with and only with SQLite.  If it 
worked with Oracle I'd raise a purchase order and do a little 
dance.  And I wouldn't sneer down my nose at mysql.



For nearly all Mac OS X customers (sadly not you) achieving a near
100x performance boost when accessing database files on an AFP or SMB
mount (like their home directory in educational deployments) is pretty
huge.


I agree.  But wouldn't those same educational institutions be 
prime candidates for multiple machine access?



So we focused on making the experience that could work well work even
better.  10.6 is a significantly better network FS client as Apple
applications like Mail don't slam the servers with byte range lock
requests all the time (good for NFS), and on AFP also gets to use
local file caching.


That makes sense and sounds good.


To address both sets of problems on all network FS, we enforce a
single exclusive lock on the server for the duration the application
has the database open.  Closing the database connection (or logging
out) allows another machine to take its turn.


Could my application close the database connection and re-open 
it to work around the problem?  How would I do that?  I suppose 
once I got it going I'd have to retry saves, fetches etc.



This behavior was supposed to be opt in for Core Data apps, but on 10.6.2 is 
not.


Opt in would be ideal -- especially dynamically configurable opt 
in (for when the CEO wants to access the system from home at night).



connecting from five machines to a single database on a Synology
network drive over afp.  ...latest values from the database during
idle time.



It can work technically on AFP.  However, the distributed cache
coherency problem is avoided by these network FS because they don't do
any file caching on files with locks.  Your server set up and
networking hardware is pretty sophisticated compared to most so the
performance is adequate.


Actually, the performance is nearly as fast as a local hard 
disk.  My measuring system is not perfect but I've seen sql 
select times of 0.003 seconds on (well-indexed) tables with tens 
of thousands of records.  Sometimes I wonder if that's even possible.



As an engineer, I would wish AFP over VPN over Airport was the more
uncommon deployment scenario, but sadly not.


I can see how that would create pressure on your engineering 
team.  Also, I confess I'd like to set up exactly that scenario 
for the CEO :)


 There are mysterious but harmless optimistic locking errors 
once  in a while where no attributes appear have changed



Those mysterious updates are probably version numbers being bumped
because the object's participation in a to-many relationship, either
outgoing or incoming, changed.


Thanks for confirming that.  My conflict logging avoids showing 
related objects.



10.6.2 only one machine can connect to a Core Data store.



ADC did pass your bug report along to us,


For the record, you were my first, very helpful, contact 
regarding the issue.  Only later did I file a bug report.



and it is a backward binary compatibility issue, and a regression from
10.6.0.  It will be fixed in a future update.


I'm relieved that you are clear about that.  I could easily see 
it slipping through the cracks.



You'll get the 10.5 performance characteristics, however.


Again, the 10.5 performance over gigabit ethernet is almost 
unbelievably fast.  I may know why.  Despite your helpful 
explanations I'm still not exactly clear on the relationship 
between caching and locking, but I wonder if the speed we are 
seeing is helped by the fact that the entire database fits into 
the Synology NAS's 128meg cache?



[for status updates regarding your bug] You should follow up with ADC


ADC explained to me that its best to add status requests 
directly to the bug report.  Is that what you mean?



or Evangelism directly


That sounds like a great idea, but I was unable to find the 
Evangelism contact information.  Can you (or anyone on the list) 
point me in the right direction?


In another message in this thread, you made a tantalizing statement:


Each machine can have its own database and they can share their results
with NSDistributedNotification or some other IPC/networking 
protocol. You can hook into the 

LaunchServices refuses to launch Finder

2010-03-22 Thread arri
Hoi list,

I'm sorry if this is abit off-topic, but it's only a bit, and i
thought some smart brains here might have a 'clear' answer right away,
i didn't manage to find a proper solution the regular ways. it seems
i'm the only one seeing this behaviour,
and it's keeping me from doing my work: programming.

For some strange reason, all of a sudden the Finder doesn't start/run
anymore on my (pretty new) 13"mbp.
Or rather, LaunchServices refuses to launch the Finder when loggin in,
throwing this error:

"The application Finder.app can't be opened"
-10811

-10811 is defind as "kLSNotAnApplicationErr" in ApplicationServices (LSInfo.h)

i've played all the usual tricks trying to sort this. disk/permission
verify/repair
cleaning-out all caches, AND completely trashing ~/Library/Preferences
AND forcing LaunchServices
to rebuild its' database
(.../CoreServices.framework/.../LaunchServices.framework/.../lsregister)

the only result so far is that -10811 changed to -10810
(kLSUnknownErr) but still no finder.
i can run it manually from the commandline, or by loading it into gdb
but that's not really ideal...

Would anyone here know howto fix this issue? someone who knows
LaunchServices well perhaps?
And can you tell me what's going on? i'm quite interested to know the
mechanics behind this complete failure..
but i don't really like to spend the weekend re-installing computers



thanks
arri
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Refreshing NSArrayController after Undo/Redo

2010-03-22 Thread Joanna Carter
Hi folks

I understand how to manage the NSUndoManager on a NSManagedObjectContext, but 
getting the visuals to react is proving elusive.

Example
===
Core Data application (not document-based)

Main form contains an NSTableView connected to an NSArrayController in Entity 
mode.

I can add and remove objects and the NSTableView is correctly updated when Undo 
and Redo are called on the MOC.

An Edit... button opens editing form.

Editing Form Controller hold a reference to the original MOC and creates 
secondary MOC. The controller handles NSManagedObjectContextDidSaveNotification 
to merge changes on the original context.

Changes are being saved back to the original MOC and the NSTableView is being 
updated correctly when the editing form closes.

The only thing that I can't get to work is to update the NSTableView when I 
call Undo after the saved edit.

Joanna

--
Joanna Carter
Carter Consulting

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Knowing when control tracking is done

2010-03-22 Thread James W. Walker

On Mar 21, 2010, at 11:27 PM, James W. Walker wrote:

> I have an instance of NSSlider that I've marked as "continuous", but I also 
> need to know when the user has released the mouse button and stopped messing 
> with the slider.  Do I need to subclass NSSlider and override mouseUp:, or is 
> there a better way?

Whoops, never mind.  I just remembered that I asked that question myself more 
than a year ago, and got a good answer...



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NSUserDefaultsController valueForUndefinedKey:

2010-03-22 Thread Richard Somers

On Mar 19, 2010, at 10:04 PM, Richard Somers wrote:


When moving a slider in a preference panel I sometimes get an error.


On Mar 20, 2010, at 11:36 AM, Quincey Morris wrote:

So you're getting an exception (thrown in valueForUndefinedKey:)  
from objects of various strange classes, and it only happens some of  
the time.


This pattern is very characteristic of a memory management bug in  
your application.



Problem solved, I neglected to unbind in dealloc. Quincey hit the nail  
right on the head. Also thanks to everyone else who chimed in. I think  
I learned something from all the comments.


--Richard

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Subclassing and Relationships - different xcdatamodels

2010-03-22 Thread Alexander Spohr
Hi list,

I used to create a base model in EOF and group some additional models around it 
having relationships into the base model. The base model was reusable, the 
others where project specific.

Now I would like to use such a setup with CoreData.
Is it possible to
1) create entity BSubclass in model B by subclassing entity ASuperclass in 
model A?
2) create a relationship from entity BSub to entity AOther?
3) create a relationship from entity AOther to entity BSub in code?

I could not find anything working for this in XCode. Did I look in the wrong 
place or is it just not possible?

atze


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Odd crash

2010-03-22 Thread Kevin Wojniak
I've seen this crash plenty of times as well. Hopefully it'll be fixed in 
10.6.3.


On Mar 21, 2010, at 4:40 PM, Kyle Sluder wrote:

> On Sun, Mar 21, 2010 at 3:37 PM, Graham Cox  wrote:
>> I got this crash report from a user. It seems to be an isolated incident but 
>> it would be good to know what sort of problem this indicates so if it crops 
>> up again I know where to look for it. I've never seen this code before and 
>> it is in Thread 6 - my app doesn't do much with threads so I'm guessing it's 
>> something Cocoa is doing, maybe with the disk by the look of it. Any ideas?
>> 
>> Thread 6 Crashed:  Dispatch queue: TFSVolumeInfo::GetSyncGCDQueue
>> 0   com.apple.DesktopServices   0x901d8445 
>> TFSVolumeInfo::GetVolumeSyncThread() + 83
>> 1   com.apple.DesktopServices   0x901d8391 
>> TNode::PostNodeTaskRequest(TCountedPtr const&) const + 81
> 
> TNode and TFSVolumeInfo have been the source of many crashes since
> 10.6 debuted. Usually it involves the open panel. All you can probably
> do is file a bug.
> 
> --Kyle Sluder
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/kainjow%40kainjow.com
> 
> This email sent to kain...@kainjow.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Odd crash

2010-03-22 Thread Paul Sanders
And I have seen something similar (including once here), always, I see, on 
10.6.2:

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0018
Crashed Thread:  2

...

Thread 2 Crashed:
0   com.apple.DesktopServices 0x9873dd1b 
TNode::FSVolumeObserverCallback(short, __CFString const*, void const*, void*) + 
1069
1   ...ple.CoreServices.CarbonCore 0x918be381 _FSVolumeObserverCallback + 
214
2   com.apple.CoreFoundation  0x91ca7b72 __CFMachPortPerform + 338
3   com.apple.CoreFoundation  0x91ca38db __CFRunLoopRun + 6523
4   com.apple.CoreFoundation  0x91ca1864 CFRunLoopRunSpecific + 452
5   com.apple.CoreFoundation  0x91ca77a4 CFRunLoopRun + 84
6   com.apple.DesktopServices 0x986e363f 
TSystemNotificationTask::SystemNotificationTaskProc(void*) + 643
7   ...ple.CoreServices.CarbonCore 0x918d87ae PrivateMPEntryPoint + 68
8   libSystem.B.dylib 0x922f4fbd _pthread_start + 345
9   libSystem.B.dylib 0x922f4e42 thread_start + 34

I have submitted a bug report (#7753826).

Paul Sanders.

- Original Message - 
From: "Kevin Wojniak" 
To: "Kyle Sluder" 
Cc: "Cocoa-Dev List" 
Sent: Monday, March 22, 2010 3:31 PM
Subject: Re: Odd crash


I've seen this crash plenty of times as well. Hopefully it'll be fixed in 
10.6.3.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Odd crash

2010-03-22 Thread Gideon King
Ah, I've been seeing a bunch of TNode errors too - I thought it must be 
something I was doing wrong. Could never work out any rhyme or reason to it, or 
reproduce it here, but received quite a few reports of crashes due to this from 
customers. Glad to know I'm not going crazy.

Gideon___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NSPredicate to exclude specific elements??

2010-03-22 Thread Robert Monaghan
Good Suggestion!
Let me look.

bob.

On Mar 21, 2010, at 4:43 PM, Kyle Sluder wrote:

> On Sun, Mar 21, 2010 at 12:47 PM, Robert Monaghan  wrote:
>> I've replaced the "not" predicate with all sorts of combinations. I get a 
>> NSInvalidArgumentException the moment the NSPredicate is instantiated.
> 
> Do you have a stack trace? Perhaps it's -setPredicate:, not
> +predicateWithFormat:, which is throwing the exception.
> 
> --Kyle Sluder

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: about 3D sound

2010-03-22 Thread Eric Wing
> Nota bene: I found out you need to use _mono_ sounds or the 3D placement
> won't work.  At least, that was the case for my iPhone game; I have never
> used OpenAL for a MacOS project.

This is true of OpenAL in general (all platforms). The 1.1 spec
specifies only mono sounds are spatialized.

-Eric
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Embedding WebKit in Java 1.6 application

2010-03-22 Thread Martin Nedbal
Hi,
I have an issue with embedded WebKit from Java 1.6.

The problem is that embedded browser does not seem to be able to load
Flash / Silverlight plugins. I think it's probably caused by
incompatible architecture - Java 1.6 is 64bit only while Safari (and
mentioned plugins) are 32bit, right? Any ideas for workaround? I could
open it in a frameless window and move/hide/show it according to Java
application move/hide/show but this it probably not the best solution
available - or at least I hope it isn't;)

Thanks.

Regards,
  Martin

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


drag & drop / re-ordering

2010-03-22 Thread Rainer Standke

Hello,

I am looking to create a drag & drop mechanism that allows the re- 
ordering of items. Ideally it would work like the side bar in Finder  
windows, where one can drag items and their icons up and down.


Another way it could work would be like a horizontal film strip with  
thumbnail icons where the user could re-order things by drag and drop.


Any pointers to ways to make this happen will be appreciated.

Rainer
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: drag & drop / re-ordering

2010-03-22 Thread Dave DeLong
Here's a little blurb I wrote a while ago on the basics of drag and drop:

http://stackoverflow.com/questions/1383021#1383640

HTH,

Dave DeLong

On Mar 22, 2010, at 11:31 AM, Rainer Standke wrote:

> Hello,
> 
> I am looking to create a drag & drop mechanism that allows the re-ordering of 
> items. Ideally it would work like the side bar in Finder windows, where one 
> can drag items and their icons up and down.
> 
> Another way it could work would be like a horizontal film strip with 
> thumbnail icons where the user could re-order things by drag and drop.
> 
> Any pointers to ways to make this happen will be appreciated.
> 
> Rainer


smime.p7s
Description: S/MIME cryptographic signature
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Embedding WebKit in Java 1.6 application

2010-03-22 Thread Jens Alfke


On Mar 22, 2010, at 10:31 AM, Martin Nedbal wrote:


The problem is that embedded browser does not seem to be able to load
Flash / Silverlight plugins. I think it's probably caused by
incompatible architecture - Java 1.6 is 64bit only while Safari (and
mentioned plugins) are 32bit, right?


WebKit and Safari both run in 64-bit. 32-bit plugins are run in a  
separate process, with rendering and events transferred between it and  
the WebView. (It's a bit like the way Google Chrome works, but only  
for plugins.)


I don't know the details of how the cross-process rendering is done;  
perhaps there's something that makes it incompatible with Java  
windows. Cocoa-dev is almost certainly not the optimal list to ask,  
though — I'm pretty sure Apple hosts a list for developers using  
WebKit, and I'm sure they have lists for Java.


—Jens___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: drag & drop / re-ordering

2010-03-22 Thread Dave Reed

Another place to look is:

http://www.red-sweater.com/blog/274/a-moveable-beast

Daniel Jalkut (Red Sweater is his company) wrote an NSArrayController subclass 
that supports re-ordering of an NSTableView and released it under an open 
source license. I've used it for a couple hobby projects of mine and it works 
great.

It looks like someone put it on github

http://github.com/sdegutis/InspectorKit.framework/blob/91bee7c3adfd22e9d37ec26804b5015099a43afb/RSRTVArrayController.m

Dave


On Mar 22, 2010, at 1:34 PM, Dave DeLong wrote:

> Here's a little blurb I wrote a while ago on the basics of drag and drop:
> 
> http://stackoverflow.com/questions/1383021#1383640
> 
> HTH,
> 
> Dave DeLong
> 
> On Mar 22, 2010, at 11:31 AM, Rainer Standke wrote:
> 
>> Hello,
>> 
>> I am looking to create a drag & drop mechanism that allows the re-ordering 
>> of items. Ideally it would work like the side bar in Finder windows, where 
>> one can drag items and their icons up and down.
>> 
>> Another way it could work would be like a horizontal film strip with 
>> thumbnail icons where the user could re-order things by drag and drop.
>> 
>> Any pointers to ways to make this happen will be appreciated.
>> 
>> Rainer
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/davelist%40mac.com
> 
> This email sent to davel...@mac.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Refreshing NSArrayController after Undo/Redo

2010-03-22 Thread Joanna Carter
OK, I've done some more digging and found where the problem appears to be 
happening.

The Undo isn't happening because there is nothing to undo!!!

The situation is happening because I am using a secondary MOC for editing.

Once the edited object is saved to the secondary MOC, I reconcile the main MOC 
by calling mergeChangesFromContextDidSaveNotification: in response to the save 
notification.

However, if I check the undoManager on the main MOC, the canUndo message 
returns NO, both before and after the merge.

So, is there any way to detect that a change has happened on the main MOC, when 
the change has only been saved to the secondary MOC and merged to the main one?

Joanna

--
Joanna Carter
Carter Consulting
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Odd crash

2010-03-22 Thread Martin Wierschin

Thread 6 Crashed:  Dispatch queue: TFSVolumeInfo::GetSyncGCDQueue
0   com.apple.DesktopServices   0x901d8445  
TFSVolumeInfo::GetVolumeSyncThread() + 83
1   com.apple.DesktopServices   0x901d8391  
TNode::PostNodeTaskRequest(TCountedPtr const&) const + 81


I've seen these kinds of crashes from users as well. A recent crash  
log that's slightly different:



Thread 12 Crashed:  Dispatch queue: TFSVolumeInfo::GetSizingGCDQueue
0   com.apple.DesktopServices 	0x96dad066  
TFSInfo::AddPtrReference() + 6
1   com.apple.DesktopServices 	0x96dae1b6 TNode::IsContainer()  
const + 30
2   com.apple.DesktopServices 	0x96dbae53  
TNode::PostFolderSizingTaskRequest(TCountedPtr const&,  
bool) const + 39
3   com.apple.DesktopServices 	0x96dda660  
TNode::DispatchResizeRequestNow(TNodeTask*) + 122
4   com.apple.DesktopServices 	0x96dda5d8  
__SetTimerToDispatchResizeRequest_block_invoke_1 + 32


~Martin

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Odd crash

2010-03-22 Thread Steve Shepard
I've seen this too. Customer comments in the crash report indicate
that it occurs most frequently when saving to a USB "thumb" drive. It
only seems to happen on 10.6.2.

-Steve

On Mon, Mar 22, 2010 at 1:48 PM, Martin Wierschin  wrote:
>>> Thread 6 Crashed:  Dispatch queue: TFSVolumeInfo::GetSyncGCDQueue
>>> 0   com.apple.DesktopServices           0x901d8445
>>> TFSVolumeInfo::GetVolumeSyncThread() + 83
>>> 1   com.apple.DesktopServices           0x901d8391
>>> TNode::PostNodeTaskRequest(TCountedPtr const&) const + 81
>
> I've seen these kinds of crashes from users as well. A recent crash log
> that's slightly different:
>
>> Thread 12 Crashed:  Dispatch queue: TFSVolumeInfo::GetSizingGCDQueue
>> 0   com.apple.DesktopServices           0x96dad066
>> TFSInfo::AddPtrReference() + 6
>> 1   com.apple.DesktopServices           0x96dae1b6 TNode::IsContainer()
>> const + 30
>> 2   com.apple.DesktopServices           0x96dbae53
>> TNode::PostFolderSizingTaskRequest(TCountedPtr const&, bool)
>> const + 39
>> 3   com.apple.DesktopServices           0x96dda660
>> TNode::DispatchResizeRequestNow(TNodeTask*) + 122
>> 4   com.apple.DesktopServices           0x96dda5d8
>> __SetTimerToDispatchResizeRequest_block_invoke_1 + 32
>
> ~Martin
>
> ___
>
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/steveshep%40gmail.com
>
> This email sent to steves...@gmail.com
>
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Embedding WebKit in Java 1.6 application

2010-03-22 Thread Martin Nedbal
You're right, I didn't check if there's any better list - and it really 
is (webkit-dev).  Sorry;)


Martin

On 03/22/2010 06:40 PM, Jens Alfke wrote:


On Mar 22, 2010, at 10:31 AM, Martin Nedbal wrote:


The problem is that embedded browser does not seem to be able to load
Flash / Silverlight plugins. I think it's probably caused by
incompatible architecture - Java 1.6 is 64bit only while Safari (and
mentioned plugins) are 32bit, right?


WebKit and Safari both run in 64-bit. 32-bit plugins are run in a 
separate process, with rendering and events transferred between it and 
the WebView. (It's a bit like the way Google Chrome works, but only 
for plugins.)


I don't know the details of how the cross-process rendering is done; 
perhaps there's something that makes it incompatible with Java 
windows. Cocoa-dev is almost certainly not the optimal list to ask, 
though — I'm pretty sure Apple hosts a list for developers using 
WebKit, and I'm sure they have lists for Java.


—Jens


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Merge changes between two Managed Object Contexts

2010-03-22 Thread Austin Grigg
Joanna,

That worked perfectly.  Thanks for taking the time to help me out -- it always 
bugs me when something takes 10 extra steps and I have a gut feeling it can be 
done in one.  mergeChangesFromContextDidSaveNotification: was the key to making 
the changes from the second context a simple thing to accomplish.

The tutorial was great, very well put together.

Austin

On Mar 22, 2010, at 5:58 AM, Joanna Carter wrote:

> Hi Austin
> 
>> Thank you Joanna, that was very helpful.  So, from your experience, 
>> mergeChangesFromContextDidSaveNotification: will not pick up adding a new 
>> object, just editing an existing one?  It seems like the real pain point is 
>> having to re-create the new object in the second managedObjectContext and 
>> copy all it's properties.
> 
> My tutorial is meant to demonstrate several different techniques, to give 
> people an idea of what is available, especially if they are coming from a 
> different programming language.
> 
> I included the routine for copying the object contents, possibly because I 
> too came across Tim Isted's blog and, at the time, thought that was what was 
> necessary to ensure that object properties were populated from the correct 
> MOC.
> 
> However, I have just checked and found that you can, indeed, use the same 
> methodology for both editing and adding a new object. Here is some revised 
> code that you can use in place of the sheetDidEnd:returnCode:contextInfo: 
> method in the tutorial.
> 
> - (void) sheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode 
> contextInfo:(void *)contextInfo
> {
>  // we are only interested in doing something with the edited word
>  // if the Save button was pressed
>  if (returnCode == NSOKButton)
>  {
>NSNotificationCenter *dnc = [NSNotificationCenter defaultCenter];
> 
>[dnc addObserverForName:NSManagedObjectContextDidSaveNotification
> object:managedObjectContext
>  queue:nil
> usingBlock:^(NSNotification *saveNotification)
> {
>   [[sourceListController managedObjectContext] 
> mergeChangesFromContextDidSaveNotification:saveNotification];
> 
>   [sourceListController fetch:nil];
> }];
> 
>NSError *error;
> 
>if (![managedObjectContext save:&error])
>{
>  NSLog(@"Error saving edited Word");
>}
> 
>[dnc removeObserver:self
>   name:NSManagedObjectContextDidSaveNotification
> object:managedObjectContext];
>  }
>  else
>  {
>// Cancel button pressed -
>// rollback any changes to the temporary context
>[managedObjectContext rollback];
>  }
> 
>  // close the dialog
>  [sheet orderOut:self];
> 
>  // clear temporary object from controller
>  [wordController setContent:nil];
> }
> 
> The only real difference here is that, within the callback block, you need to 
> call [sourceListController fetch:nil] to ensure that the original browsing 
> list is not just refreshed but that the sort descriptors are honoured to 
> include the new object.
> 
> Regards
> 
> Joanna
> 
> --
> Joanna Carter
> Carter Consulting
> 

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Modify image in IKImageview with CIFilter‏

2010-03-22 Thread paul morel






Hi,
I was wondering if someone would know how it is possible to use a
 CIFilter with an IKImageview?
In the documentation they mention the 
fact that we can use an IKImageview with a CIFilter. But they don't 
really explain how! 
Actually so far I am using a CALayer that I 
added over the image. So the CIFilter acts on the layer but not the 
image.
But what I would like to do is to modify directly the image in
 the IKImageview. Does anybody know how to do it?

Thanks a lot,
Paul


  
_
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Details and the concepts related to the Nib Window

2010-03-22 Thread Abhinav Tyagi
Hi,

Thanks for your time for reviewing this.

I am new to objective c and Cocoa on iMac OSX Leopard XCode3.1.

Whenever we drag an object from the Interface builder to our Nib window
(like we do for a controller object), it means that we are instantiating the
object of a class or interface. But where actually can i see it being
instantiated. Also what does FilesOwner and First responder refers to.

Also, when NSApplicationMain function is called from main.m file, what are
the background stuff happening in the background.

I want to see these stuff so that I can modify things accordingly whenever
needed.

Abhinav
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Attempt to nest an NSCollectionView fails.

2010-03-22 Thread Brian Krisler
Hi,

I am trying to nest an NSCollectionView inside an existing collection view and 
am not having much luck.  The example I am building runs without issue, however 
the nested values do not appear.

I currently have two model classes:

@interface BlockModel : NSObject {
NSString *blockTitle;
NSMutableArray *blockItems;
}
@property (readwrite, retain) NSString *blockTitle;
@property (readwrite, retain) NSMutableArray *blockItems;
@end

and 

@interface BlockItem : NSObject {
NSString *itemName;
NSString *itemDescription;
}
@property (readwrite, retain) NSString *itemName;
@property (readwrite, retain) NSString *itemDescription;
@end

In my delegate, I have an NSMutableArray of blockModels.

Then in Interface Builder, I have an NSCollection view with a label and a 
nested NSCollection view.  The label contains the BlockModel.blockTitle (which 
displays correctly).

To get content into the nested view, I have an Array Controller with the 
Content Array bound to the Collection View Item from the parent and a model Key 
Path of: representedObject.blockItems

My nested collection view has its content bound to my Array Controller 
arrangedObjects. And my array controller is configured to be an object 
controller with the keys: itemName and itemDescription. I then have two labels 
in my nested collection view bound to the nested collection view item 
representedObject.itemName and representedObject.itemDescription.

When I execute my code, I can see a few blocks with the proper titles, however 
the nest view is completely empty.

Is there a step that I am missing?

Thanks for any help.

Brian
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Details and the concepts related to the Nib Window

2010-03-22 Thread Ken Thomases
On Mar 22, 2010, at 5:07 PM, Abhinav Tyagi wrote:

> Whenever we drag an object from the Interface builder to our Nib window
> (like we do for a controller object), it means that we are instantiating the
> object of a class or interface. But where actually can i see it being
> instantiated.

What do you mean by "see"?

You are seeing it being instantiated right there in IB.  Interface Builder does 
not build a set of instructions to later be played back.  It builds an object 
graph which is archived in the NIB and later reconstituted.

> Also what does FilesOwner and First responder refers to.

File's Owner is a placeholder, a stand-in proxy, for an object which will be 
provided at NIB-loading time.  Loading a NIB reconstitutes an object graph.  
However, the object graph created from the NIB would end up being largely 
isolated from the existing object graph in the rest of the program.  By 
connecting the objects in the NIB to File's Owner, and vice versa, and then 
providing one of the objects from the pre-existing object graph to be the owner 
of the NIB, you can connect the two object graphs together in useful ways.

For the application's main NIB, the framework specifies that the application 
object will be the owner.  Therefore, in the main NIB, the File's Owner and the 
NSApplication proxy are redundant with one another.


First Responder is a conceptual placeholder or proxy.  It doesn't represent a 
particular object, it represents the responder chain.  You should read about 
the responder chain in the Cocoa Event Handling Guide.

Basically, if you connect an action control to the First Responder, then when 
that control is manipulated by the user it will send its action to the 
responder chain instead of a pre-determined, fixed object.


> Also, when NSApplicationMain function is called from main.m file, what are
> the background stuff happening in the background.

This is documented most clearly in the class overview for NSApplication.

> I want to see these stuff so that I can modify things accordingly whenever
> needed.

Again, what do you mean by "see"?  Also, it is very unusual for one to need to 
modify what happens during NSApplicationMain.

You can probably achieve what you need by setting up an application delegate 
and implementing the various NSApplication delegate methods on it.  On rare 
occasions, you may find a need to subclass NSApplication, but you usually don't 
have to -- the delegate methods should be sufficient.

Regards,
Ken

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Details and the concepts related to the Nib Window

2010-03-22 Thread Jon Pugh
> > Whenever we drag an object from the Interface builder to our Nib window
>> (like we do for a controller object), it means that we are instantiating the
>> object of a class or interface. But where actually can i see it being
>> instantiated.
>
>What do you mean by "see"?

I presume he means via a breakpoint in the debugger.  Typically people put a 
breakpoint in init and don't see it being hit because init isn't called, 
initWithCoder is what is used when unarchiving objects from a nib, but that's a 
tough one to break in.

Typically, the first place your Interface Builder objects/delegates get called 
is awakeFromNib.  That's the place to put a breakpoint where you can see the 
things you created in Interface Builder.

Jon
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com