NSPopUpButton breaks in Snow Leopard

2009-09-14 Thread ALEXander
model key path controlTypes. This does not work any more in Snow Leopard. Any ideas what I have to change to make it work again? Thanks and best, ALEXander. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: NSPopUpButton breaks in Snow Leopard

2009-09-14 Thread ALEXander
advisable? Thanks very much, ALEXander. On Mon, Sep 14, 2009 at 7:26 PM, Quincey Morris wrote: > On Sep 13, 2009, at 15:11, ALEXander wrote: > >> 1) in the File's Owner class I defined a function returning an NSArray: >> >> - (NSArray*) controlTypes >> { >>

Re: NSPopUpButton breaks in Snow Leopard

2009-09-14 Thread ALEXander
009, at 23:33, Quincey Morris wrote: On Sep 14, 2009, at 14:07, ALEXander wrote: What do you mean by KVO compliant? I already have added a setControlTypes function, this was not necessary in Leopard and also does not fix the bug in Snow Leopard. On Sep 13, 2009, at 15:11, ALEXander wrote:

[SOLVED] NSPopUpButton breaks in Snow Leopard

2009-09-15 Thread ALEXander
;s my theory. But that does not fit with the fact that contentTypes actually does get called when it is supposed to. Hmm... Thanks, ALEXander. On 15.09.2009, at 08:28, ALEXander wrote: Hi, actually, I used the binding to the "Content" fields of NSPopUpButton because the pos

NSSlider with multiple values?

2009-07-22 Thread ALEXander
Hello all, I have an NSSlider which can relate to multiple different values. What would be a good way of showing the user that if the touches the slider he will change all these values to the value on the slider? Like the dash in an NSCheckBox, but just for NSSlider. Best, ALEXander

Subclassing add: of NSArraycontroller

2009-04-23 Thread ALEXander
Hello, to implement the automatic support of drag reordering in all NSTableViews of my Core Data based application, I subclassed NSArrayController using the very good tutorial supplied at http://www.timisted.net/blog/archive/core-data-drag-drop/ I just put all the functionality in the new

Re: Subclassing add: of NSArraycontroller

2009-04-23 Thread ALEXander
Thanks! I read that, but I obviously I did not understand it. What I do now is not to call super and adding the object myself. Works, but I have to set relationships myself. But I mostly need to do that anyway. Alexander. On 23.04.2009, at 19:31, Kyle Sluder wrote: On Thu, Apr 23, 2009

Re: Subclassing add: of NSArraycontroller

2009-04-23 Thread ALEXander
Yep, that's exactly what I am doing now. I also have a lot of prep work and just defined my document controller as delgate of the array controller to add objects. Thanks, ALEXander. On 23.04.2009, at 19:48, I. Savant wrote: On Thu, Apr 23, 2009 at 2:31 PM, Kyle Sluder wrote: O

Re: Detecting changes to NSPopUpButtonCell in an NSTableView

2009-04-23 Thread ALEXander
You can bind the selection of the popup to a variable and then observe that variable via KVO. I did that on a single NSPopUpButton, you would still need to get the affected row. ALEXander. On 24.04.2009, at 00:12, Ulai Beekam wrote: Hi, We all know that we can detect whenregular

NSPopUpButton with "multiple selection" state (like NSMixedState)

2009-04-24 Thread ALEXander
thing. Any ideas? I would now try to subclass NSPopUpButton and implement an NSMixedState like there is for NSButton. But I am sure the subclass must be out there somewhere... (are you reading this OmniGroup? :) Thanks, ALEXander. ___ Cocoa-dev ma

Re: NSPopUpButton with "multiple selection" state (like NSMixedState)

2009-04-24 Thread ALEXander
iple groups. But the case can happen that the user selectes multiple objects with different groups. It like a three-state checkbox, essentially. Best, ALEXander. On 24.04.2009, at 17:34, Jerry Krinock wrote: On 2009 Apr 24, at 08:43, ALEXander wrote: I am looking for a possibility to di

NSPopUpButton update

2009-04-28 Thread ALEXander
plays the text. Does anybody have an idea which method is doing this, and how I could override it? When I click once on the popupbutton everything is ok again and the color image reappears. ALEXander. ___ Cocoa-dev mailing list (Cocoa-dev@lists.

Core Data Predicate Bug?

2009-05-16 Thread ALEXander
save] command before doing the fetch, but this is very slow and therefore not suitable in my case. Just issuing processPendingChanges does not work. Pointers to a solution/workaround would be very much appreciated. ALEXander. ___ Cocoa-dev mai

Debugging Information

2009-05-18 Thread ALEXander
? Thanks, ALEXander. ___ 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

Text drop into other text apps

2014-11-02 Thread Alexander Reichstadt
Hi, I'd like to write @"test" to the pasteboard in response to a tableview drag to end up in another app's textfield. I see that all my methods are called accordingly, but when I release the mouse button, nothing is inserted nor does the cursor react by reflecting the insertion point if the m

Re: Text drop into other text apps

2014-11-02 Thread Alexander Reichstadt
Hi > On 02 Nov 2014, at 19:11, Ken Thomases wrote: > > On Nov 2, 2014, at 12:43 PM, Alexander Reichstadt wrote: > > As to why your drop is not being accepted, have you called > -setDraggingSourceOperationMask:forLocal: on the table view to set an > operation mask f

watch changes to any properties on an object

2009-09-03 Thread Alexander Cohen
Hello, I have a base object that needs to know when any of it's properties or subclasses properties have changed and set a dirty flag on itself. Is there a way to do this? thx AC ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: watch changes to any properties on an object

2009-09-03 Thread Alexander Cohen
12:27 PM, Jens Alfke wrote: On Sep 3, 2009, at 8:24 AM, Alexander Cohen wrote: I have a base object that needs to know when any of it's properties or subclasses properties have changed and set a dirty flag on itself. Is there a way to do this? No, not in general. Key-value observin

Re: watch changes to any properties on an object

2009-09-03 Thread Alexander Cohen
to set. thx AC On Sep 3, 2009, at 2:43 PM, Jens Alfke wrote: On Sep 3, 2009, at 11:32 AM, Alexander Cohen wrote: Ok, thats what i thought. But just for implementation ideas, how does CoreData know when one of it's @dynamic properties is changed? It must set some sort of flag somewhe

Re: watch changes to any properties on an object

2009-09-03 Thread Alexander Cohen
n Sep 3, 2009, at 8:24 AM, Alexander Cohen wrote: I have a base object that needs to know when any of it's properties or subclasses properties have changed and set a dirty flag on itself. Is there a way to do this? No, not in general. Key-value observing requires knowing the exact property name(s)

Re: watch changes to any properties on an object

2009-09-03 Thread Alexander Cohen
On Sep 3, 2009, at 3:44 PM, Quincey Morris wrote: On Sep 3, 2009, at 12:14, Alexander Cohen wrote: Ah, ok, this is more like what i wanted to hear! :) I understand how @dynamic works, but how to I get to funnel all calls to @dynamic properties to the same call such as setValue:forKey: or

Re: Subversion and Interface Builder

2009-09-11 Thread Alexander Hartner
Thanks for all the feedback on this. Have there been any new development with 10.6 in this regard. I wonder what Apple themselves are using for version control ? Thanks in advance Alex On 28 Aug 2009, at 00:04, Alexander Hartner wrote: For some time now I have been struggling with

Re: Illegal attempt to establish a relationship 'xyz' between objects in different contexts

2009-10-12 Thread Alexander Spohr
Am 12.10.2009 um 15:27 schrieb Alex Reynolds: How do I create the new Book entity in the secondary MOC, so that I can still associate it with a pre-existing Owner in the primary MOC? You can’t. Drag a local instance of the owner into you second MOC and connect to that copy. atze

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-18 Thread Alexander Spohr
Am 18.10.2009 um 04:35 schrieb Ken Thomases: For controlling code completion, search for "XCCodeSenseFormattingOptions" on this page: http://developer.apple.com/mac/library/documentation/DeveloperTools/Reference/XcodeUserDefaultRef/100-Xcode_User_Defaults/UserDefaultRef.html Thank you Ken, t

Re: Within UITableViewCell: capturing UISegmentedControl event & Row number?

2009-10-18 Thread Alexander Spohr
Frederick, just an idea - from UIView’s documentation: tag The receiver’s tag, an integer that you can use to identify view objects in your application. @property(nonatomic) NSInteger tag Set the tag of each segmented view to the row before you hand it out to the table view. atze

Re: Core data unable to save Date, Name etc.

2009-10-18 Thread Alexander Spohr
Am 18.10.2009 um 20:50 schrieb Harish Yarlagadda: I have a Class Math which extends NSManagedObject and has some dynamic propertiesa. name (String) b. date (Date) I using xcdatamodel for modeling my tables. I am using String and Date respectively from xcdatamodel. I am creating a new match o

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-18 Thread Alexander Spohr
Am 19.10.2009 um 08:05 schrieb Dave Keck: Any suggestion how to jump from one method parameter prototype to the next to replace them one after the other? Eclipse does that with tab. If I understand you correctly, control-/ Yep, that’s it! I didn’t see it in the prefs. Got it now. Thank y

Re: Displaying a view modally (iPhone)

2009-10-21 Thread Alexander Spohr
Mike, you need a view that has the size of the window to cover it completely. Otherwise touches will go down the responder chain and reach other views. What happens while you show the spinner? If you load data from the net show the UIApps spinner at the top. atze Am 21.10.2009 u

Make an NSButton send a message on right click

2009-10-23 Thread Alexander Golec
I am somewhat new to Cocoa development, and I've decided to learn a bit by doing my favorite new-language project: a Minesweeper clone. For the cells, I want to have a matrix of NSButtons, and I want each button to respond differently to right clicks and left clicks. Would I have to extend

waiting for async callback in main thread

2009-10-27 Thread Alexander Cohen
Hi, I'm working with and SDK that lets me observe objects. When the state of the object changes i receive a callback. The docs for the SDK say that the main NSRunLoop needs to stay active and responsive for me to receive the callbacks. Now, i would like to be able to wait for that callbac

Re: Using UISwitch within TabBar Application [iPhone]

2009-10-27 Thread Alexander Spohr
Am 27.10.2009 um 15:51 schrieb Mick Walker: I set the Files Owner in IB to SocialViewController and wire up all of the outlets. However when I run the program, all runs fine until I attempt to switch to the view in question, I get the error: 'NSUnknownKeyException', reason: '[ setValue:f

Re: waiting for async callback in main thread

2009-10-27 Thread Alexander Cohen
On Oct 27, 2009, at 2:04 PM, Jens Alfke wrote: On Oct 27, 2009, at 10:40 AM, Alexander Cohen wrote: Now, i would like to be able to wait for that callback on the main thread like this: [object addObserverForCallback] ... wait for callback ... continue on processing with the state of the

Re: waiting for async callback in main thread

2009-10-27 Thread Alexander Cohen
On Oct 27, 2009, at 3:42 PM, Jens Alfke wrote: On Oct 27, 2009, at 12:11 PM, Alexander Cohen wrote: 100% agree with you, and that's what i would normally do. But unfortunately, this time i must wait in the mainthread for the callback. I know it's wrong, but this time i'

Re: can the button responce the second click before the first is finished before?

2009-10-28 Thread Alexander Spohr
Am 28.10.2009 um 10:19 schrieb XiaoGang Li: jump out the for loop if the bStop flag changed to YES. How to implement it? Use another thread to run your for loop. atze ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Problem with allocating memory

2009-10-28 Thread Alexander Spohr
Am 28.10.2009 um 10:27 schrieb Michael Abendroth: Why is this happening? How should we know if you don’t provide the faulty code? atze ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Handling projects with several XIBs

2009-11-02 Thread Alexander Spohr
Am 02.11.2009 um 11:55 schrieb Tobias Jordan: The problem I am currently having is that when updating the interface I have to a) make my changes to every localization (en, ge, fr, jp, etc.) or b) re-create all of the localizations which isn't that easy to handle since I am not the one tra

Ruby Grammar for TDParseKit

2009-11-02 Thread Alexander Cohen
Hello, Has anyone created a grammar file for Ruby for use with TDParseKit. Seems like thats pretty much the best option out there ( it rocks ), but i'd rather check for a grammar file before i start a new one. thx AC ___ Cocoa-dev mailing list (

Re: NSDate / NSXMLParser

2009-11-04 Thread Alexander Spohr
The parser CAN parse the timezone and adjust the date accordingly. To parse this date: 20091021T121942+0200 I use this format: MMdd'T'HHmmssZZZ and it works fine. The only thing you need is to find the right timezone format string. Yours might be '-'MM'-'dd'T'HH':'mm':'ssZ Not sure if yo

NSCoder and CGColorRef

2009-11-05 Thread Alexander Cohen
How would one go about encoding a CGColorRef into a NSCoder? thx AC ___ 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.

Re: Core-Data : how to merge two contexts ?

2009-11-07 Thread Alexander Spohr
Am 07.11.2009 um 09:39 schrieb Eric Morand: The NSManagedObjectContext is your scratchpad. If you want something inside it fetch it or create it. If you change something, the change will be promoted. Hi atze, Actually, the change will be promoted only when they are committed to the stor

Re: Adding a vertical scrollbar to a multiline textfield

2009-11-10 Thread Alexander Spohr
Am 10.11.2009 um 12:45 schrieb Ian Piper: > I hope someon can advise as to the best way to do what I want. I have a > multiline textfield that receives a very long piece of text. I wanted to add > a vertical scrollbar. I tried putting the multiline textfield inside a scroll > view but I'm not

Re: Obtaining selected text from the frontmost application

2009-11-10 Thread Alexander Spohr
Services? At least if the user wants you to get the text. Otherwise? Would be a security issue and should not be possible. atze Am 10.11.2009 um 17:55 schrieb Nava Carmon: > Hi, > > How do I approach to this task? Which technologies to use and whether there > are example of somethin

Re: [iPhone] Implement a screen like contacts screen

2009-11-11 Thread Alexander Spohr
tableHeaderView atze Am 11.11.2009 um 14:45 schrieb Tharindu Madushanka: > Hi > > Could I get some points on how to create a iPhone Contacts like screen. I > think parts starting from mobile number is possible with Editable Detail > view. But the Add Image and Name part is confusing. s

Re: Performance

2009-11-18 Thread Alexander Spohr
Am 16.11.2009 um 07:14 schrieb Chris Carson: > The first class is the model that submits asynchronous bulk reads to the USB > device. The callback for these reads copies the received data from the buffer > asynchronous filled by the request and into an NSData object that is > allocated and add

Re: tiffs on pasteboard

2009-11-20 Thread Alexander Spohr
Am 20.11.2009 um 03:04 schrieb Chris Idou: > But what are the rules and conventions? Why would Finder put the icon in the > pasteboard on the assumption that is what the user wants, but TextEdit would > paste in the actual file on the assumption that is what the user wants? It > seems schizoph

Re: drawRect method not called after several hours...

2009-11-23 Thread Alexander Spohr
Am 23.11.2009 um 13:30 schrieb Boris Prohaska: > It does GUI updates multiple times a second. How? atze ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Transparency Help 2

2009-11-23 Thread Alexander Spohr
Am 23.11.2009 um 19:01 schrieb R T: > Given: A litho Image, Black & White pixels only. > I want to show just the Black Pixels in a subclassed NSView. Underlay all white pixel with an alpha of 0 and composite that? atze ___ Cocoa-dev mailing

NSConnection retaining delegate?

2009-11-25 Thread Alexander Spohr
Hi list, is NSConnection retaining its delegate? (At least as long as it is collecting data) I thought contract is that a delegate is never retained? This behavior requires to _always_ send cancel to the connection before you release the delegate. Otherwise the NSConnection might still hold on

Re: NSURLConnection retaining delegate?

2009-11-25 Thread Alexander Spohr
Lee: > On Wednesday, November 25, 2009, at 12:15PM, "Alexander Spohr" > wrote: >> is NSConnection retaining its delegate? >> (At least as long as it is collecting data) > > FWIW I've never used NSConnection, but in the following quick and dirty code >

Re: NSURLConnection retaining delegate?

2009-11-25 Thread Alexander Spohr
Am 25.11.2009 um 23:25 schrieb Jerry Krinock: > > On 2009 Nov 25, at 12:53, Alexander Spohr wrote: > >> I meant NSURLConnection. > > * Normally the delegate is receiving and storing headers, data and errors for > you. You should retain the delegate as long as y

Re: Core Data and +[NSExpression expressionForFunction:...]

2009-11-25 Thread Alexander Spohr
Ron, I am not sure if that works at all. I never fetched using methods that are not part of the database as a qualifier. Your code has to be very slow because it would need to fetch all Photos and then call distanceFromLatitude:longitude: on each. Why not qualify directly using a bounding rect

Re: Use of KVC Array operators

2010-03-12 Thread Alexander Spohr
Am 12.03.2010 um 04:34 schrieb Eli Bach: > The operators mentioned on this page, particularly "@unionOfSets". > > > > I have the following Core Data object's setup > > ClassA

Re: incorrect bitmap date from NSBitmapImageRep from NSDate

2010-03-12 Thread Alexander Spohr
Exactly what does not work? The loading? Or the opengl command? If the latter I suspect that your file is not in the needed format. Does your image have alpha? atze Am 12.03.2010 um 13:09 schrieb Ariel Feinerman: > // not work > > NSData *data = [NSData dataWithContentsOfFile: filena

performSelector doesn't work for modal window

2010-03-12 Thread Alexander Bokovikov
Hi, All, Unfortunately NSButton click is called when button is pressed, but not when it is released. Therefore any timeconsumming process, executed on the button click, will keep the button pressed. To avoid it I've decided to use performSelector:withObject:afterDelay: message. This appro

Re: Use of KVC Array operators

2010-03-12 Thread Alexander Spohr
Am 12.03.2010 um 17:32 schrieb Eli Bach: > On Mar 12, 2010, at 5:37 AM, Alexander Spohr wrote: > >> Am 12.03.2010 um 04:34 schrieb Eli Bach: >> >>> The operators mentioned on this page, particularly "@unionOfSets". >>> >>> <http://deve

Re: Use of KVC Array operators

2010-03-12 Thread Alexander Spohr
Am 12.03.2010 um 21:06 schrieb Eli Bach: > On Mar 12, 2010, at 12:19 PM, Eli Bach wrote: > >> And I did just try it, and got a binding error: >> >> Cocoa Bindings: Error setting value for bound property instanceOfA of object >> : [<_NSFaultingMutableSet 0x1006eab90> >> addObserver:forKeyPath:

Re: Which iPhone Program?

2010-03-13 Thread Alexander Spohr
This is not really a Cocoa question... - If you want your application in the store you need Company. - If you want to distribute in a big company (1000 employees) without using the store you want the enterprise. The account is for the whole company. But the one who pays owns the account. So you

Re: Private ivars, not marked as IBOutlet, visible in IB

2010-03-13 Thread Alexander Spohr
Am 13.03.2010 um 10:32 schrieb Joanna Carter: > All that is needed is to detect whether the ivar is @private and to respect > that visibility. If an ivar is private, it should not be visible in the IB > designer, regardless of whether it is of type id or not. I’d say no to this. If my class i

Re: Private ivars, not marked as IBOutlet, visible in IB

2010-03-13 Thread Alexander Spohr
Am 13.03.2010 um 16:25 schrieb Joanna Carter: > My reason for using id is because I want to hold a delegate and call methods > on it without compiler warnings. Or have I got the wrong idea there? Yes your idea is wrong. You are free to specify NSObject *delegate; atze ___

Re: Which iPhone Program?

2010-03-13 Thread Alexander Spohr
Am 13.03.2010 um 17:03 schrieb Thomas Davie: > On 13 Mar 2010, at 11:59, Alexander Spohr wrote: > >> This is not really a Cocoa question... >> >> - If you want your application in the store you need Company. > > This is not true, I currently have two applica

Re: NSTimer never being deallocated

2010-03-13 Thread Alexander Spohr
Am 13.03.2010 um 17:41 schrieb Tobias Jordan: > I want to know what's going on inside my app and I've got enough experience > in coding to know that just trusting the Apple docs (especially when it's > about memory management) is not reliable. Please explain this. If you stick to the memory r

Re: Private ivars, not marked as IBOutlet, visible in IB

2010-03-13 Thread Alexander Spohr
it is not standard convention. The convention for delegates > is: id. > > Kevin > > On 13 Mar 2010, at 07:39, Alexander Spohr wrote: > >> >> Am 13.03.2010 um 16:25 schrieb Joanna Carter: >> >>> My reason for using id is because I want to hold a de

Re: Private ivars, not marked as IBOutlet, visible in IB

2010-03-13 Thread Alexander Spohr
Am 13.03.2010 um 18:54 schrieb Joanna Carter: >> Actually this is how nibs were designed and intended to be used: to be >> fragments of the object graph loaded at runtime. It is a *very* recent >> trend to have them exist so independently of File's Owner, and to use >> the public API to hook up t

How to show a progress without multithreading?

2010-03-13 Thread Alexander Bokovikov
Hi, All, I have a time-consuming procedure, and I'd like to show its progress. I can't use multi-threading for some technical reason. I'm looking for a way to update a progress indicator from this procedure, As far as I understand my task is to cause message loop processing. And my question is

Re: Cocoa-dev Digest, Vol 7, Issue 307

2010-03-14 Thread Alexander Bokovikov
On Sat, 13 Mar 2010 at 20:23:40 -0800 Quincey Morris wrote: You might want to choose a different run loop mode, if you have special requirements. NSEventTrackingRunLoopMode is sufficient to allow keystrokes and mouse clicks to be processed, so that you can have a UI (say, Esc key or button

Re: #include CommonStrings.txt - 'no such file' error

2010-03-14 Thread Alexander Spohr
.txt looks wrong. Why not create .h and .m and import the .h? Usually you #import, not #include in ObjC. .h extern NSString *gLeftBracket; .m NSString *gLeftBracket =@"<"; atze Am 14.03.2010 um 06:47 schrieb Steve Cronin: > Folks; > > I have a dozen or so strings that I use

Re: Private ivars, not marked as IBOutlet, visible in IB

2010-03-15 Thread Alexander Spohr
Am 15.03.2010 um 23:22 schrieb Jeff Laing: > As I recall, sending variables of type id useful messages like > retain and release generate a compiler warning, whereas > NSObject are fine. > > I could be wrong on this, but I definitely recall thinking it was a stupid > compiler behavior. You c

Re: Little HELP with a fetch Request in Core Data

2010-03-16 Thread Alexander Spohr
Try toInvoices.toStatus.statusID = 1001 in your NSPredicate. atze Am 16.03.2010 um 14:02 schrieb Gustavo Pizano: > Hello. > > Well this may be the simplest question ever, but somehow I can't find the > answer. > > I have an entity User, which has a relationShip to-many Invoices, and

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

NSNotificationCenter and a modal window - a problem

2010-03-24 Thread Alexander Bokovikov
Hi, All, I have a project where a progress of NSTask is indicated through this code: if ([self popup] != nil) anObj = [self popup]; else anObj = self; [[NSNotificationCenter defaultCenter] addObserver:anObj

Re: NSNotificationCenter and a modal window - a problem [solved]

2010-03-24 Thread Alexander Bokovikov
On 24.03.2010, at 12:48, Ken Thomases wrote: You need to invoke -readInBackgroundAndNotifyForModes: and pass an array of modes which includes NSModalPanelRunLoopMode (or NSRunLoopCommonModes, which includes NSModalPanelRunLoopMode by default). Many thanks! Really I should look at that me

How to catch modal window appearance?

2010-03-26 Thread Alexander Bokovikov
Hi, All, Is there any notification or NSWindow delegate method, called immediately after the modal window is shown on screen? It looks like windowDidExposed doesn't come to a modal window. Is there any solution? Thanks. ___ Cocoa-dev mailing list

Re: How to catch modal window appearance?

2010-03-27 Thread Alexander Bokovikov
On 26.03.2010, at 23:10, Fritz Anderson wrote: On 26 Mar 2010, at 11:12 AM, Alexander Bokovikov wrote: Is there any notification or NSWindow delegate method, called immediately after the modal window is shown on screen? It looks like windowDidExposed doesn't come to a modal windo

Re: How to catch modal window appearance?

2010-03-27 Thread Alexander Bokovikov
On 27.03.2010, at 12:48, Ken Thomases wrote: I'm not really sure what you're asking for. A modal window being shown on screen is not something that happens spontaneously _to_ your application, it's something that your application does. So, whatever you want to do after the window is shown

Re: How to catch modal window appearance?

2010-03-27 Thread Alexander Bokovikov
On 27.03.2010, at 1:59 PM, Ken Thomases wrote: I can't see how this is either correct or incorrect from the point of view of OOP philosophy. OOP involves encapsulation, separation of concerns, polymorphism, etc. "separation of concerns" is just the case. I would say it's the other way around

Re: How to catch modal window appearance?

2010-03-27 Thread Alexander Bokovikov
On 27.03.2010, at 16:57, Ken Thomases wrote: "separation of concerns" is just the case. Except the timing does not impact on separation of concerns. I'm not about timing. I'm just about code separation. Initialization is a part of dialogue, so its window controller is the right place, w

Re: How to catch modal window appearance?

2010-03-27 Thread Alexander Bokovikov
On 27.03.2010, at 19:39, Joanna Carter wrote: Every window is "managed" by a Controller and it is from this Controller that you can run any process you want, as well as creating and showing a window. This is correct of course, and this was just what I tried to reach for. But I had to cal

Re: How to catch modal window appearance?

2010-03-27 Thread Alexander Bokovikov
On 27.03.2010, at 20:36, Ken Thomases wrote: The app controller should just send a message to the window controller asking it to do the whole thing. Then, the window controller can create the window, initiate the process, and invoke - runModalForWindow:, in whichever order it prefers. Th

Re: How to catch modal window appearance?

2010-03-29 Thread Alexander Bokovikov
On 30.03.2010, at 2:27, Lee Ann Rucker wrote: Well, if you're using runModalForWindow: and relying on it to show the window, it goes away before the method returns, so there is no point in the code after show and before hide. I understand it of course. I told about the window controller cl

How to find all clipping siblings for a view?

2010-04-15 Thread Alexander Bokovikov
Hi, All, For some reason I need to do a job which NSWindow usually does, when it redraws itself (AFAIU) - I need to find all its views, which have z- order higher than my view, then get their bounding rectangles, unite them, subtract from the window content view bounding rectangle and sect

Re: How to find all clipping siblings for a view?

2010-04-16 Thread Alexander Bokovikov
that it is implicitly defined by the sequence of objects within the [rootView subviews], but it is not the Z-order itself, but the order in which objects are stored in the NIB file. I've tried it and it is working OK for my particular case. Best reg

MKMapView crashes if released to early / in the wrong moment

2010-04-16 Thread Alexander Spohr
Hi list. MKMapView is crashing on 3.x if you release it too early, when any of its animations are still in progress. (rdar://7408284) I had crashes in #1 0x32d209c0 in -[MKDotBounceAnimation animationDidStop:finished:] () #1 0x0226f34e in typeinfo name for MKTileRequester () #1 0x314b986a in

Re: program termination after releasing self defined NSXMLParser class

2010-04-16 Thread Alexander Spohr
Am 16.04.2010 um 00:43 schrieb Dominic Dauer: > With the purpose to test these simple class I just did the following in the > controller class of one view: > > -(BOOL)textFieldShouldBeginEditing:(UITextField *)textField { > > XMLParser *parser = [[XMLParser alloc] initWithContentsOfURL:[

Strange "autoreleased with no pool in place" message

2010-04-17 Thread Alexander Bokovikov
Hi, All, Am trying to debug an app, which crashes in 10.4 when I build it with 10.5 SDK and 10.4 deployment target, but works OK when is built with 10.4 SDK and 10.4 deployment target. All builds are performed in 10.5 I'm getting these lines in crash log: Thread 0 Crashed: 0 libSystem.B.

Re: Strange "autoreleased with no pool in place" message

2010-04-17 Thread Alexander Bokovikov
On 18.04.2010, at 1:30, Jens Alfke wrote: On Apr 17, 2010, at 12:18 PM, Alexander Bokovikov wrote: *** _NSAutoreleaseNoPool(): Object 0x209fa0 of class NSCFString autoreleased with no pool in place - just leaking Set a breakpoint at _NSAutoreleaseNoPool and start the app. That should

Re: How to find all clipping siblings for a view?

2010-04-17 Thread Alexander Bokovikov
On 18.04.2010, at 1:29, Jonathan Hess wrote: On Apr 16, 2010, at 10:47 AM, Kyle Sluder wrote: On Fri, Apr 16, 2010 at 10:37 AM, Corbin Dunn wrote: You can't control it in IB (short of removing the view and adding it back in). But in code, you can just call - addSubview:positioned:relati

Re: Strange "autoreleased with no pool in place" message

2010-04-18 Thread Alexander Bokovikov
On 18.04.2010, at 1:59, Ken Thomases wrote: Run > Manage Breakpoints > Add Symbolic Breakpoint. Type the name of the function to break on. In general, you should familiarize yourself with the Xcode Debugging Guide: http://developer.apple.com/mac/library/documentation/DeveloperTools/Conce

Re: program termination after releasing self defined NSXMLParser class

2010-04-18 Thread Alexander Spohr
Am 17.04.2010 um 18:44 schrieb Fritz Anderson: > On 16 Apr 2010, at 11:34 AM, Alexander Spohr wrote: > >> That means that -parse does not block. It runs in the event loop. > > I have not found this to be the case. In the context of the documents, and of > the customary

Re: Regarding MVC design pattern

2010-05-18 Thread Alexander Spohr
Am 18.05.2010 um 12:40 schrieb Sai: > Unfortunately, when I try to get value from that NSDictionary, I will get > exc_bad_access signal, and I follow gdb, the NSDictionary instance seems to > be corrupted. > So where does it go wrong? Hopefully I state things clearly this time. Thank > you all.

Re: Regarding MVC design pattern

2010-05-20 Thread Alexander Spohr
Am 19.05.2010 um 19:12 schrieb Kyle Sluder: > On Wed, May 19, 2010 at 4:38 AM, Sherm Pendley > wrote: > If you synthesize your ivars, you can get at the ivar using the self-> syntax. > > self->myFoo = [aFoo retain]; > [self->myFoo release]; Why not just using myFoo without the self->? To ma

Re: isKindofClass with NSData and NSKeyUnarchiver

2010-05-27 Thread Alexander Spohr
Am 27.05.2010 um 11:21 schrieb Philip Vallone: > > Hello, > > I am passing different types of data to NSData (NSString, NSArray, UIImage). > I am trying to find out what kind of data t is so I know how to handle the > NSData when I receive it. The below code is an example of how I am trying

Re: Cross XIB references?

2010-06-06 Thread Alexander Spohr
Am 05.06.2010 um 23:14 schrieb Jean-François Brouillet: > Consider the situation where I have a "root" ImageView in IB. > I specify the actual image I want it to hold by just filling/ > selecting which of the existing images are already present in the > project, using the "Image" input box of the

Re: [iPhone] NSManagedObjectContext save doesn't crash but breaks on objc_exception_throw

2010-06-08 Thread Alexander Spohr
Is there anything in the log? What does save's error parameter return? atze Am 08.06.2010 um 17:53 schrieb Hank Heijink (Mailinglists): > Dear all, > > I've run into the following problem, and I'm a bit stuck - I wonder if you > can shed some light on this. I have an iPhone app that u

Re: BOOL returned via -performSelctor: not BOOL on 64-bit system

2010-06-08 Thread Alexander Heinz
On Jun 8, 2010, at 1:37 PM, Jean-Daniel Dupas wrote: > > Le 8 juin 2010 à 19:23, James Bucanek a écrit : > >> Nick Zitzmann wrote (Tuesday, June 8, 2010 9:27 >> AM -0600): >> >>> On Jun 8, 2010, at 10:16 AM, James Bucanek wrote: >>> I've been trying to track d

NSAttributedString with columns

2010-06-14 Thread Alexander Cohen
Hello, I would like to use an NSAttributed string in order to render a type of key/value 2 column display in a NSTextField. As of now, i'm using tabs between key's and value's on each line but some values need to wrap to the next line and i would like them to wrap to the start of value column a

Re: Add button to Finder

2010-06-16 Thread Alexander Heinz
It sounds to me like this would be better suited to an item in the Services menu: http://developer.apple.com/mac/library/documentation/cocoa/conceptual/SysServices/introduction.html - Alex On Jun 16, 2010, at 9:03 PM, k...@highrolls.net wrote: > I have a SVN Client that adds a button to the Fi

Re: NSLog and va_list

2010-06-17 Thread Alexander Spohr
What exactly so you want? Either you have an va_list and want to give it to NSLog? Then use void NSLogv(NSString *format, va_list args); But I think you want to know what the va_list contains. Then you just loop over it. "man stdarg" will help. Example: void foo(char *fmt, ...)

IBPlugin with Core Animated button.

2010-06-23 Thread Alexander Zvyagin
Hi, All! I'm try to making Core Animated button encapsulated to Interface Builder Plugin. >From inside, this button is NSControl created as layer-backed NSView and >filled with CALayers. All images of button states are draw by CALayers using mouseEvents (not by a simple drawRect): this are als

changes to NSView's frame in its window

2010-06-23 Thread Alexander Cohen
Hello, I have a view in an NSScrollView's document view that has a small child window attached to it, meaning the window follows that view wherever it goes. But when i scroll the scrollview, not much changes for that view. So i'm wondering if there is anyway to get changes to a views "global" f

Re: changes to NSView's frame in its window

2010-06-23 Thread Alexander Cohen
Wow, nice to know. Probably not a good idea to count on it though, right? AC On Jun 23, 2010, at 3:38 PM, Michael Ash wrote: > On Wed, Jun 23, 2010 at 1:33 PM, Alexander Cohen > wrote: >> Hello, >> >> I have a view in an NSScrollView's document view that has a sm

  1   2   3   4   5   6   >