Re: retaining and releasing a Window Controller.

2010-08-09 Thread Negm-Awad Amin
after sending a message to its owner, the code execution returns to a probably deallocated instance. For that reason you should autorelease the WC instead of releasing it or dispatch the release through the run loop. Cheers Amin Negm-Awad negm-a...@cocoading.de Am Mo.,09.08.2010 um 08:27

Re: Autorelease pool

2009-10-08 Thread Negm-Awad Amin
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/negm-awad%40cocoading.de This email sent to negm-a...@cocoading.de Amin Negm-Awad negm-a...@cocoading.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: Design pattern for "per-document" settings

2009-08-03 Thread Negm-Awad Amin
-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/negm-awad%40cocoading.de This email sent to negm-a...@cocoading.de Amin Negm-Awad negm-a...@cocoading.de ___ Cocoa-dev maili

Re: How to show Interface Builder's build warning and messages?

2008-10-31 Thread Negm-Awad Amin
ut the list is empty. ___ 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

Re: Customizing controls: Inheritance bad?

2008-10-31 Thread Negm-Awad Amin
quests 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/negm-awad%40cocoading.de This email sent to [EMAIL PROT

Re: [MEET] CocoaHeads Mac Developer Meetings

2008-10-30 Thread Negm-Awad Amin
oderator 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/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-Awad [EMAIL PROTECTED]

Re: NSCoding protocol

2008-10-10 Thread Negm-Awad Amin
Am Fr,10.10.2008 um 18:17 schrieb Clark Cox: On Fri, Oct 10, 2008 at 9:09 AM, Negm-Awad Amin <[EMAIL PROTECTED] > wrote: Am Fr,03.10.2008 um 21:00 schrieb [EMAIL PROTECTED]: I want MyClass to conform to the NSCoding protocol. But I'm puzzled about how to implement the in

Re: NSCoding protocol

2008-10-10 Thread Negm-Awad Amin
r 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/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-Awad [EMAIL PROTECTED]

Re: Finder Crashes on File Open

2008-10-10 Thread Negm-Awad Amin
tion: http://lists.apple.com/mailman/options/cocoa-dev/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator c

Re: Newb Question about Delegtes and callbacks

2008-10-09 Thread Negm-Awad Amin
/CommunicatingWithObjects/chapter_6_section_4.html#/ /apple_ref/doc/uid/TP40002974-CH7-SW18 Cheers Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Just when I thought I understood bindings.

2008-10-09 Thread Negm-Awad Amin
haven't made much use of NSObjectController before. Can anybody think what I might be doing wrong? ___ 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/Unsubs

Re: In dealloc(): ref @property, Can I use " = nil; " vs "[ release]; " ?

2008-10-08 Thread Negm-Awad Amin
p/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: In dealloc(): ref @property, Can I use " = nil; " vs "[ release]; " ?

2008-10-08 Thread Negm-Awad Amin
nsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please d

Re: Conditional mouseDownCanMoveWindow for NSView?

2008-10-08 Thread Negm-Awad Amin
min 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/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin N

Re: CoreData: Fetching object with maximum of property

2008-10-08 Thread Negm-Awad Amin
ot 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/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin N

Re: CoreData: Fetching object with maximum of property

2008-10-07 Thread Negm-Awad Amin
Am Di,07.10.2008 um 15:12 schrieb Frank Illenberger: Hello Negm-Awad, thanks for helping. Nicht dafür! The idea with the fetch limit and the descending order solves my problem as I am using a SQLite store. Sonst hättest du auch nicht das Problem. ;-) Liebe Grüße Amin Cheers Frank

Re: CoreData: Fetching object with maximum of property

2008-10-07 Thread Negm-Awad Amin
r 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/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-A

Re: comparing Strings.

2008-10-07 Thread Negm-Awad Amin
ev@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/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED]

Re: NSWindowController retain counts, chapter 2

2008-10-07 Thread Negm-Awad Amin
t;, I spoke imprecisely. I meant the window had been closed. But, as I said, it had not been deallocated. To clarify: The window is closed (still allocated) and you get a draw request? […] Cheers, Amin Negm-Awad [EMAIL PROTECTED] ___

Re: Collections can be simple Attributes in Core Data

2008-10-07 Thread Negm-Awad Amin
a pretty formal work, it is related to imaginations of what change could happen. (Sounds like the election of the u.s. president …?). More exactly: What are the changes, I have to include in my model? Cheers, Amin Negm-Awad [EMAIL PROTECTED] __

Re: Collections can be simple Attributes in Core Data

2008-10-07 Thread Negm-Awad Amin
Am Di,30.09.2008 um 19:58 schrieb I. Savant: On Mon, Sep 29, 2008 at 3:03 AM, Negm-Awad Amin <[EMAIL PROTECTED] > wrote: But now I find there is an even more natural way, which is to just leave them as a set or array, and store in an attribute of type Transformable. The d

Re: expanding core data model sheet

2008-10-06 Thread Negm-Awad Amin
_ 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/negm-awad

Re: Crash with toolbars

2008-10-06 Thread Negm-Awad Amin
Monteiro de Carvalho Cheers, Amin Negm-Awad [EMAIL PROTECTED] ___ 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.c

Re: window controllers and managed object contexts

2008-10-06 Thread Negm-Awad Amin
fixed? ___ 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

Re: showing window causes EXC_BAD_ACCESS

2008-09-29 Thread Negm-Awad Amin
__ 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/ma

Re: Collections can be simple Attributes in Core Data

2008-09-29 Thread Negm-Awad Amin
going to get me into any trouble? Yes, because you get redundant and inconsistent model. Cheers Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to t

Re: binding to static text

2008-09-24 Thread Negm-Awad Amin
ct the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] The bound property (stringValue) of the bound object (instance of NSControl) is set automat

Re: Problems with Key Observing Registration Performance

2008-09-10 Thread Negm-Awad Amin
_ Markus Spoettl___ 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:

Re: Do I Need Multiple NSArrayControllers For This?

2008-09-10 Thread Negm-Awad Amin
a-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@

Re: Best 'native' formats for NSImage and NSSound?

2008-09-09 Thread Negm-Awad Amin
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: understanding conversions between CF and NS datatypes

2008-09-05 Thread Negm-Awad Amin
Am Do,04.09.2008 um 20:20 schrieb Michael Ash: On Thu, Sep 4, 2008 at 1:40 PM, Negm-Awad Amin [EMAIL PROTECTED]> wrote: Am Do,04.09.2008 um 18:27 schrieb Michael Ash: On Thu, Sep 4, 2008 at 10:41 AM, Negm-Awad Amin <[EMAIL PROTECTED] > wrote: Am Sa,30.08.2008 um 05:22 schrieb Mi

Re: understanding conversions between CF and NS datatypes

2008-09-04 Thread Negm-Awad Amin
Am Do,04.09.2008 um 18:27 schrieb Michael Ash: On Thu, Sep 4, 2008 at 10:41 AM, Negm-Awad Amin <[EMAIL PROTECTED] > wrote: Am Sa,30.08.2008 um 05:22 schrieb Michael Ash: Ultimately the most important thing to understand about toll-free bridging (the link between CF and NS data typ

Re: understanding conversions between CF and NS datatypes

2008-09-04 Thread Negm-Awad Amin
Am Do,04.09.2008 um 16:41 schrieb Negm-Awad Amin: Am Sa,30.08.2008 um 05:22 schrieb Michael Ash: On Fri, Aug 29, 2008 at 1:38 PM, Allen Curtis <[EMAIL PROTECTED]> wrote: 1. Where can I get a better understanding of the data conversion between these different frameworks? 2. Ulti

Re: understanding conversions between CF and NS datatypes

2008-09-04 Thread Negm-Awad Amin
cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev mailing list (

Re: Reflexive Many-to-Many in Core Data?

2008-09-03 Thread Negm-Awad Amin
o 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/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-A

Re: How do I use Sort Descriptor binding in IB on my array controller?

2008-09-03 Thread Negm-Awad Amin
tact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-Awad [EMAIL PROTECTED]

Re: Design Question: Bindings & Custom Views

2008-08-28 Thread Negm-Awad Amin
the custom NSView) and binds it to the model object programmatically. When the model object is changed or removed, its subview counterpart responds correspondingly. In this manner I could hold all the view-specific states and cache data in the subview object. What do you think? On Thu, Aug 28, 2008 at

Re: Design Question: Bindings & Custom Views

2008-08-28 Thread Negm-Awad Amin
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/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED

Re: Core Data - use of simple accessors vs. KVC

2008-08-27 Thread Negm-Awad Amin
Am Do,28.08.2008 um 06:43 schrieb Caleb Strockbine: On Aug 27, 2008, at 2:43 PM, Negm-Awad Amin and mmalc crawford argued: You can subclass NSManagedObject and add properties using @property and @dynamic, which means, that the accessors will be generated dynamically at run-time. (Without

Re: Core Data - use of simple accessors vs. KVC

2008-08-27 Thread Negm-Awad Amin
Am Mi,27.08.2008 um 19:57 schrieb mmalc crawford: On Aug 27, 2008, at 10:36 AM, Negm-Awad Amin wrote: Am Mi,27.08.2008 um 19:19 schrieb mmalc crawford: On Aug 27, 2008, at 9:48 AM, Negm-Awad Amin wrote: Am Mi,27.08.2008 um 18:22 schrieb Oleg Krupnov: Suppose I have a Core Data model

Re: Core Data - use of simple accessors vs. KVC

2008-08-27 Thread Negm-Awad Amin
Am Mi,27.08.2008 um 19:19 schrieb mmalc crawford: On Aug 27, 2008, at 9:48 AM, Negm-Awad Amin wrote: Am Mi,27.08.2008 um 18:22 schrieb Oleg Krupnov: Suppose I have a Core Data model object MyObject with property myProp defined in the model editor's schema. Can I use the simple acce

Re: Core Data - use of simple accessors vs. KVC

2008-08-27 Thread Negm-Awad Amin
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/negm-awad%40cocoading.de This email se

Re: Core Data - use of simple accessors vs. KVC

2008-08-27 Thread Negm-Awad Amin
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/negm-awad%40cocoading.de This email se

Re: Removing Applications from the Dock Programmatically

2008-08-27 Thread Negm-Awad Amin
coa-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/negm-awad%40cocoading.de This email sent

Re: monitoring file system

2008-08-25 Thread Negm-Awad Amin
moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev

Re: How to control the order of enumerating on a NSDictionary

2008-08-25 Thread Negm-Awad Amin
Am Mo,25.08.2008 um 09:40 schrieb Scott Anguish: On 25-Aug-08, at 2:05 AM, Negm-Awad Amin wrote: What an *** … Amin Negm-Awad [EMAIL PROTECTED] while I can fully understand your reaction (and I'm guessing you meant to send this off list) language like this is inappropriate

Re: *** -[NSSavePanel _blocksActionWhenModal:]: message sent to deallocated instance 0x15a05e50

2008-08-25 Thread Negm-Awad Amin
Am Mo,25.08.2008 um 08:45 schrieb Graham Cox: On 25 Aug 2008, at 4:24 pm, Graham Cox wrote: On 25 Aug 2008, at 4:17 pm, Negm-Awad Amin wrote: Don't care about this. IF it is a singleton, retaining is no problem. IF it is NOT, retaining is the right way to handle it. Sure, no pr

Re: *** -[NSSavePanel _blocksActionWhenModal:]: message sent to deallocated instance 0x15a05e50

2008-08-24 Thread Negm-Awad Amin
or 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/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-Awad [EMAIL PROTECTED] __

Re: How to control the order of enumerating on a NSDictionary

2008-08-24 Thread Negm-Awad Amin
What an asshole … Amin Negm-Awad [EMAIL PROTECTED] ___ 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

Re: Core data entity creation design

2008-08-24 Thread Negm-Awad Amin
ts.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.

Re: ObjC 2.0, properties, KVC, special _ hacks etc.

2008-08-24 Thread Negm-Awad Amin
ple.com/mailman/options/cocoa-dev/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Re: ObjC 2.0, properties, KVC, special _ hacks etc.

2008-08-24 Thread Negm-Awad Amin
nsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Tabbed preference panels

2008-08-22 Thread Negm-Awad Amin
ling 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/negm-awad%4

Re: Displaying time

2008-08-22 Thread Negm-Awad Amin
Am Fr,22.08.2008 um 16:15 schrieb Graham Cox: On 23 Aug 2008, at 12:04 am, Negm-Awad Amin wrote: This is what a analog PLL do, when it loads/unloads a ramp. Analogue PLL design (Audio to GHz RF) were my bread-and-butter for many years, so do be careful not to teach your granny to suck

Re: Displaying time

2008-08-22 Thread Negm-Awad Amin
Sorry for sending the responds solely to Graham: Am Fr,22.08.2008 um 15:53 schrieb Graham Cox: On 22 Aug 2008, at 11:39 pm, Negm-Awad Amin wrote: I think, that a higher event-frequency is not neccessary. He should use an interval of close to one second (something like 0.99 seconds). In

Re: Displaying time

2008-08-22 Thread Negm-Awad Amin
Am Fr,22.08.2008 um 16:00 schrieb Graham Cox: On 22 Aug 2008, at 11:54 pm, Negm-Awad Amin wrote: This is not ugly, but the starting point for a software PLL. Well, there's no "loop" to phase lock here. This was the reason for me, to write: "starting point".

Re: Displaying time

2008-08-22 Thread Negm-Awad Amin
Am Fr,22.08.2008 um 15:52 schrieb Thomas Davie: On 22 Aug 2008, at 15:47, Negm-Awad Amin wrote: Am Fr,22.08.2008 um 15:45 schrieb Thomas Davie: Using a timer isn't too bad. Running at two updates per second should be acceptable since you're sampling at twice the highes

Re: Displaying time

2008-08-22 Thread Negm-Awad Amin
ft (except of the drawing interval).« Cheers, Amin Negm-Awad [EMAIL PROTECTED] ___ 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-

Re: Displaying time

2008-08-22 Thread Negm-Awad Amin
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/negm-a

Re: !foo vs foo == nil

2008-08-21 Thread Negm-Awad Amin
Am Do,21.08.2008 um 19:54 schrieb Michael Ash: On Thu, Aug 21, 2008 at 10:40 AM, Negm-Awad Amin <[EMAIL PROTECTED] > wrote: Am Do,21.08.2008 um 16:15 schrieb Michael Ash: On Thu, Aug 21, 2008 at 6:47 AM, Negm-Awad Amin <[EMAIL PROTECTED] > wrote: Am Do,21.08.2008 um 12:25 sc

Re: NSWindowController, owner, "primary window"...

2008-08-21 Thread Negm-Awad Amin
Am Do,21.08.2008 um 19:24 schrieb j o a r: On Aug 21, 2008, at 10:12 AM, Negm-Awad Amin wrote: Probably because the GoF prefers combination over (?) subclassing. Subclassing always discloses parts of the implementation of a class. ("white-boxing") So generally it is a good ide

Re: NSWindowController, owner, "primary window"...

2008-08-21 Thread Negm-Awad Amin
t 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/negm-awad%40cocoading.de This email sent to [

Re: Design Question: Pro & Cons of KVC/KVO

2008-08-21 Thread Negm-Awad Amin
e the ivars, write accessors (okay, Objctive-C 2 …), maybe support undoing, support serialization with NSCoding … With core data In many cases you do not need any subclass, but simply use NSManagedObject. The definition of the model can be done in the modeller very easy. Undoing, Coding an

Re: Design Question: Pro & Cons of KVC/KVO

2008-08-21 Thread Negm-Awad Amin
bit coding and so on. There is no magic. It's just new land for you. Thanks. Cheers, Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the lis

Re: !foo vs foo == nil

2008-08-21 Thread Negm-Awad Amin
Am Do,21.08.2008 um 16:15 schrieb Michael Ash: On Thu, Aug 21, 2008 at 6:47 AM, Negm-Awad Amin <[EMAIL PROTECTED] > wrote: Am Do,21.08.2008 um 12:25 schrieb Thomas Engelmeier: Am 21.08.2008 um 11:04 schrieb Negm-Awad Amin: Sometimes you see in source code something like th

Re: Design Question: Pro & Cons of KVC/KVO

2008-08-21 Thread Negm-Awad Amin
Core Data. And it works with bindings. And it is implemented very good through isa-swizzling. And And And … There is nothing wrong in writing a Cocoa II. But: Why? Cheers, Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-d

Re: !foo vs foo == nil

2008-08-21 Thread Negm-Awad Amin
Am Do,21.08.2008 um 12:25 schrieb Thomas Engelmeier: Am 21.08.2008 um 11:04 schrieb Negm-Awad Amin: Sometimes you see in source code something like this: if( booleanVarOrExpression == YES ) (I think, Rentzsch does it that way, IIRC) and Ithink, that this is simply correct. Oh, that is

Re: !foo vs foo == nil

2008-08-21 Thread Negm-Awad Amin
r Subscription: http://lists.apple.com/mailman/options/cocoa-dev/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reques

Re: IB displays a non-outlet (Bug or feature?)

2008-08-21 Thread Negm-Awad Amin
! Amin On Aug 21, 2008, at 12:01 AM, Negm-Awad Amin [EMAIL PROTECTED]> wrote: Hi before I report this, I want to check, whether I misunderstood something. I've a window controller subclass with three outlets. Additional the class owns to ivars, one of them typed id. These ivar

Re: !foo vs foo == nil

2008-08-21 Thread Negm-Awad Amin
uests 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/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-Awad [EMAIL PROTECTED]

Re: Design Question: Pro & Cons of KVC/KVO

2008-08-21 Thread Negm-Awad Amin
Thanks ___ 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.c

IB displays a non-outlet (Bug or feature?)

2008-08-21 Thread Negm-Awad Amin
ected this "outlet" to a view.) http://www.cocoading.de/webspace/id_outlet.tiff Cheers, Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to th

Re: NSView confusion

2008-08-20 Thread Negm-Awad Amin
tp://lists.apple.com/mailman/options/cocoa-dev/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Right place to unobserve notifications in a document

2008-08-20 Thread Negm-Awad Amin
Am Mi,20.08.2008 um 16:58 schrieb Joan Lluch (casa): Joan Lluch El 20/08/2008, a las 16:05, Negm-Awad Amin escribió: Am Mi,20.08.2008 um 15:37 schrieb Joan Lluch (casa): I've been reading this thread and I don't understand it in the case of GC. Why don't you still hav

Re: Best Way to Handle Properties?

2008-08-20 Thread Negm-Awad Amin
y no rule, that you have to have more than an -init, if you are able to construct a valid object. If there would be such a rule, array controllers wouldn't work … […] Cheers, Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev mailing list (

Re: Right place to unobserve notifications in a document

2008-08-20 Thread Negm-Awad Amin
ke this. (You cannot relay on -close, as I said in the OP.) Cheers, Amin Joan Lluch Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the l

Re: How to reference a NSDocument from a NSView?

2008-08-20 Thread Negm-Awad Amin
s to e replaced with KVO. :-) ___ 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/o

Re: best way to determine if portion of window is visible?

2008-08-20 Thread Negm-Awad Amin
ur Subscription: http://lists.apple.com/mailman/options/cocoa-dev/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Re: Hex representation of NSString

2008-08-19 Thread Negm-Awad Amin
of - [NSPasteboard stringForType:] to get the raw pasteboard data as it's coming from the Java application? Yes, I think, that the other answer tries to solve the problem "too late". He should look insinde the pasteboard before a string instance is even in mind. Charles

Re: Question about respondsToSelector

2008-08-18 Thread Negm-Awad Amin
@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/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED

Re: Right place to unobserve notifications in a document

2008-08-18 Thread Negm-Awad Amin
Am Mo,18.08.2008 um 20:14 schrieb Andy Lee: On Aug 18, 2008, at 12:49 PM, Negm-Awad Amin wrote: Am Mo,18.08.2008 um 18:18 schrieb Andy Lee: -- but in this case I think -dealloc is not only okay, but sometimes the only correct place to unregister a notification. Suppose an invariant of

Re: Right place to unobserve notifications in a document

2008-08-18 Thread Negm-Awad Amin
Am Mo,18.08.2008 um 18:57 schrieb Michael Ash: On Mon, Aug 18, 2008 at 11:51 AM, Negm-Awad Amin <[EMAIL PROTECTED] > wrote: But anyway I do not think, that doing something else then memory management in -dealloc is good design. Normally I unregister observation in delegate method

Re: Right place to unobserve notifications in a document

2008-08-18 Thread Negm-Awad Amin
Am Mo,18.08.2008 um 18:18 schrieb Andy Lee: On Aug 18, 2008, at 11:51 AM, Negm-Awad Amin wrote: But anyway I do not think, that doing something else then memory management in -dealloc is good design. Normally I unregister observation in delegate methods like -applicationWillTerminate:. I

Re: Right place to unobserve notifications in a document

2008-08-18 Thread Negm-Awad Amin
Am Mo,18.08.2008 um 17:37 schrieb Michael Ash: On Mon, Aug 18, 2008 at 5:59 AM, Negm-Awad Amin <[EMAIL PROTECTED] > wrote: Hi, for some teaching reasons I have a document class, which observes a notification. Of course I have to unobserve this notification, when the document is

Re: Changing NSTextFieldCells' editing appearance?

2008-08-18 Thread Negm-Awad Amin
Am Mo,18.08.2008 um 17:00 schrieb Tim Andersson: 18 aug 2008 kl. 10.15 skrev Negm-Awad Amin: No, I speak english badly enough to misunderstand this. :-) I'm sorry if I made it sound like a "insult" - That wasn't my intention. No, my fault. The behaviour of an NS

Re: Hex representation of NSString

2008-08-18 Thread Negm-Awad Amin
in the examples, which lets you inspect the raw data. Maybe this helps to find the problem. Cheers, Amin Robert 2008/8/18 Negm-Awad Amin <[EMAIL PROTECTED]> Am Mo,18.08.2008 um 12:40 schrieb Robert Černý: I don't like it because the string will be converted. I'm interested

Re: Hex representation of NSString

2008-08-18 Thread Negm-Awad Amin
ave to subclass it or doing some undocumentated stuff. Cheers, Amin and even allowLossyConversion:NO doesn't guarantee it. Or am I wrong? Robert 2008/8/18 Negm-Awad Amin <[EMAIL PROTECTED]> Am Mo,18.08.2008 um 12:21 schrieb Robert Černý: Hi,I'm trying to find a way how to

Re: Hex representation of NSString

2008-08-18 Thread Negm-Awad Amin
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/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin N

Right place to unobserve notifications in a document

2008-08-18 Thread Negm-Awad Amin
documentation, that -close (myDocument) wouldn't be called in some situations. Is there a save place to unobserve notifications? (Or providing other clean-up.) I couldn't find a hint in the documentation!? Cheers Amin Negm-Awad [EMAIL

Re: NSUInteger hash

2008-08-18 Thread Negm-Awad Amin
___ 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/mailma

Re: Changing NSTextFieldCells' editing appearance?

2008-08-18 Thread Negm-Awad Amin
eers, Amin Thanks for you help, Tim Andersson Amin Negm-Awad [EMAIL PROTECTED] ___ 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-

Re: NSOutlineView

2008-08-18 Thread Negm-Awad Amin
o 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/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-A

Re: Binding NSButton state to an NSMutableArray inside an NSMutableArray

2008-08-18 Thread Negm-Awad Amin
Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

RE: best way to determine if portion of window is visible?

2008-08-15 Thread negm-awad
pple.com > >Help/Unsubscribe/Update your Subscription: >http://lists.apple.com/mailman/options/cocoa-dev/negm-awad%40cocoading.de > >This email sent to [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Binding NSButton state to an NSMutableArray inside anNSMutableArray

2008-08-15 Thread negm-awad
and thanks in advance, >> 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-de

Re: Changing NSTextFieldCells' editing appearance?

2008-08-15 Thread Negm-Awad Amin
but I still get a white border (And a black background) around it when I edit it. All help is appreciated, Tim Andersson Cheers Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin request

Re: Making a bound view re-read its value

2008-08-15 Thread Negm-Awad Amin
apple.com/mailman/options/cocoa-dev/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-Awad [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: CoreData, Object/Array Controllers and KVO

2008-08-15 Thread Negm-Awad Amin
ments 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/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-Awad [EMAIL PROTECTED]

Re: Should I retain a variable returned from this accessor?

2008-08-13 Thread Negm-Awad Amin
Am Di,12.08.2008 um 21:36 schrieb Shawn Erickson: On Tue, Aug 12, 2008 at 2:12 AM, Negm-Awad Amin <[EMAIL PROTECTED] > wrote: BTW: You can do the same inside a getter to get rid of thread problems. Nope it does nothing to solve threading issues ([[blah retain] autorelease] is

Re: Accessing memory of another application?

2008-08-12 Thread Negm-Awad Amin
r 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/negm-awad%40cocoading.de This email sent to [EMAIL PROTECTED] Amin Negm-Awad [EMAIL PROTECTED] _

  1   2   >