undomanger performance

2016-04-30 Thread Georg Seifert
_dispatch_timers_run 4162.0ms 12.8%0,0 Main Thread 0x4ef176 Does anyone has an idea what’s going on? Thanks Georg Seifert Xcode 7.2 on MacOS 10.10.5, 27" Retina-iMac. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: iOS app communicating with macOS app

2016-09-29 Thread Georg Seifert
Maybe this helps: https://github.com/rsms/peertalk <https://github.com/rsms/peertalk> Best Georg Seifert > On 28 Sep 2016, at 14:57, Eric E. Dolecki wrote: > > I'd like to make an iOS application communicate with a macOS application. > No App Store involvement - just

Re: Prioritizing drawing of the important stuff

2016-10-31 Thread Georg Seifert
___ 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: https://lists.apple.co

Re: My services in my own app

2014-09-01 Thread Georg Seifert
Just wanted to follow up on this. The bug is not fixed. It is still there in 10.9. Any other news on it? Georg On 16 Jan 2012, at 22:27, Mark Munz wrote: > > You didn't indicate what version of Mac OS X you were running under. > > If this is happening under Snow Leopard, then this is a known

Re: My services in my own app

2014-09-02 Thread Georg Seifert
I think is happens if both, the NSSendTypes and NSReturnTypes are set. Services that only have one seem to work fine. If anyone can help me with this? Best Georg On 01 Sep 2014, at 21:30, Georg Seifert wrote: > Just wanted to follow up on this. The bug is not fixed. It is still there

Re: My services in my own app

2014-09-08 Thread Georg Seifert
On 03 Sep 2014, at 01:20, dangerwillrobinsondan...@gmail.com wrote: > > > Sent from my iPhone > >> On 2014/09/03, at 3:45, Georg Seifert wrote: >> >> Here are some more information. >> >> I created a small test app following the example on apples

Frame of views during awakeFromNib or restoration

2014-10-23 Thread Georg Seifert
now in 10.9. I think I read somewhere about that but cant find it. I have several things I need to do. One is to set the initial scroll position, another is that I want to manually restore some split views. Thanks Georg Seifert ___ Cocoa-dev mailing

Re: Blurry is the New Sharp

2015-01-05 Thread Georg Seifert
> > I guess the best we can do as developers is to vote with our feet by not > adopting it in our apps. (I haven't had to deal with an OS X source list in a > while; I assume "vibrancy" has to be opted into? Or at least there's a way to > opt out?) No, it is on by default and no way (that I kn

Re: UIColor in CoreData database into NSColor

2015-02-20 Thread Georg Seifert
That would only work it UIColor and NSColor would encode themselves in exactly the same way. Any guess what, they aren’t. Georg On 20 Feb 2015, at 22:53, Alex Zavatone wrote: > Would it be correct to not care about UIColor or NSColor, encode the data to > be stored in 64 bit NSData, store tha

Re: Cocoa GUI app getting slower on MacPro or MacMini when disconnecting all screens

2015-03-13 Thread Georg Seifert
Macs still do that. I needed to get an adapter to get decent performance out of my headless macMini. Am 12.03.2015 um 21:18 schrieb Matthieu Beghin : > Yes I do OpenGL… I can’t see any process using CPU, so I was thinking it’s > not related, but maybe for some reason the glSwap is blocking for

Plugin bundle with Javascript

2015-05-19 Thread Georg Seifert
Hi, I hope this it the right place to ask, if not can you point me the right direction. Is it possible to build plugin bundles using Javascript? I know how to to that with ObjectiveC and python (with py2app) but could’n find anything about Javascript. Georg _

no mouseDown on dismissing context menu

2009-09-17 Thread Georg Seifert
Hi, If I show a context menu in my view and then click somewhere in the view, mouseDown for the view is not called. Subsequent mouseDragged are triggered. The view returns YES in acceptsFirstMouse and acceptsFirstResponder. What do I miss? Georg __

enable/disable/check file Sharing from code

2009-09-21 Thread Georg Seifert
Hi, Is there a way to enable and disable file sharing from code. I only found this: /usr/sbin/AppleFileServer It seems to work but if I use it, the Sharing prefPane does not show the enabled state. And is there a way to check if file sharing is running? Are there recommended approaches to s

Re: enable/disable/check file Sharing from code

2009-09-21 Thread Georg Seifert
Is there a way to enable and disable file sharing from code. Almost all background services are universally controlled by launchd. See man launchctl, launchd, et al. This is not exactly my problem. I can start file sharing with just calling "/usr/sbin/AppleFileServer". My question was ho

filtered NSCollectionView

2009-11-05 Thread Georg Seifert
Hi, I have a problem with my NSCollectionView. The itemView contains a textfield bound to the name property of the represented object. If I filter the content array on represented.name and then use the textfield to change the name of on of the items I get this (on end editing): 2009-11

using UTF-32 in NSString.

2010-06-27 Thread Georg Seifert
Hi, Does anyone has information on how to use Unicode code points higher than 0x. I need to add some supplementary multilingual plane code points to a NSString. I can use something like this: NSString *aString = @"\\u0001ABCD"; //this prints fine but the [aString length] is 2 But

Re: using UTF-32 in NSString.

2010-06-28 Thread Georg Seifert
> You can do something like this: > UniChar characters[2]; > CFIndex length = (CFStringGetSurrogatePairForLongCharacter(0x1ABCD, > characters) ? 2 : 1); > > CFStringCreateWithCharacters(NULL, characters, length); > > Aki Is there anything like this in Leopard. This functions are new in Snow Le

Manually set value of a textfield

2010-07-02 Thread Georg Seifert
Hi, If I bind a textfield to the selection of a ArrayController and have more than one item with different value selected, I get a grayed out "Multiple Value" string. Is there a way of doing this manually? I have a popup that displays the values from the selection, but need to have some manual

Custom control and cells

2010-07-07 Thread Georg Seifert
Hi, I try to find an example on how to implement the mouse tracking and editing behavior of a NSCell from my own control (subclass of NSControl). I need a control that can handle several kinds of cells like ImageAndTextCell (with editing) or popup button cells. I read a lot about it but can’t

Re: Custom control and cells

2010-07-09 Thread Georg Seifert
interesting anyway if I could implement my own controls. Best Georg > > On Jul 7, 2010, at 4:14 AM, Georg Seifert wrote: > >> Hi, >> >> I try to find an example on how to implement the mouse tracking and editing >> behavior of a NSCell from my own control

Re: Custom control and cells

2010-07-09 Thread Georg Seifert
e view of an >> item (both fixed in Snow Leopard but I have to support Leopard). >> >> It would be interesting anyway if I could implement my own controls. >> >> Best >> Georg >>> >>> On Jul 7, 2010, at 4:14 AM, Georg Seifert wrote: >>> &

Re: Custom control and cells

2010-07-10 Thread Georg Seifert
Am 10.07.2010 um 03:42 schrieb Michael Ash: > On Fri, Jul 9, 2010 at 6:22 PM, Georg Seifert wrote: >> Hi, >> The thing is, I want to replicate the NSCollectionView but using cells >> instead of views. The NSCollectionView has a lot of problems like >> performance a

NSCollectionView and selecting range

2010-07-12 Thread Georg Seifert
Hi, I asked this in my last post, but this was under the wrong topic. My question: In a NSCollectionView: How do I allow the range selection with the shift key (like in a tableView)? Best Regards Georg ___ Cocoa-dev mailing list (Cocoa-dev@lists.a

document saveing in Lion

2012-01-12 Thread Georg Seifert
Hi, I have a problem and can find the right terms to search for it to solve my problem. I have a app, that can read several documents as but can’t save them, it has a native file format is can save to. If I open such a file, it shows a "locked" in the title bar. If I unlock it and make some ch

Re: document saveing in Lion

2012-01-12 Thread Georg Seifert
ked for an place to save the new file. By the way, this worked well in Snow Leopard. Georg On 12.01.2012, at 21:04, Georg Seifert wrote: > Hi, > > I have a problem and can find the right terms to search for it to solve my > problem. > > I have a app, that can read several

My services in my own app

2012-01-15 Thread Georg Seifert
Hi, My app registers some services and they work just fine. Only if I invoke then from within the same application, the app hangs. I tried with other apps and they had the same problem. I searched the web for it but could not find anything. Is there anything I can do about it? Thanks Georg__

Re: My services in my own app

2012-01-16 Thread Georg Seifert
Yes, I’m on Snow Leopard. I just had a another look at the specs. there is something about a .service bundle. Can I put one of this in my .app bundle? And how do I register it? Thanks Georg > You didn't indicate what version of Mac OS X you were running under. > > If this is happening under Sn

ARC and 10.6

2012-02-02 Thread Georg Seifert
Hi, I try to convert my app to use xCode 4.2 and ARC. My app uses several custom frameworks and plugins. I used the migration tool to enable ARC for all of them. As I still want to support Snow Leopard, I set the SDKROOT to 10.7 and the Deployment Target to 10.6. But if I do that, on the startu

Re: ARC and 10.6

2012-02-03 Thread Georg Seifert
On 03.02.2012, at 00:24, Greg Parker wrote: > On Feb 2, 2012, at 2:51 PM, Georg Seifert wrote: >> I try to convert my app to use xCode 4.2 and ARC. My app uses several custom >> frameworks and plugins. I used the migration tool to enable ARC for all of >> them. >

Re: ARC and 10.6

2012-02-03 Thread Georg Seifert
Me again. I fixed it. I forgot to specify a Principle class for some of my plugins. This was no problem before, not with gcc (xCode 3) and not with clang in xCode 4. Thanks Georg On 03.02.2012, at 00:24, Greg Parker wrote: > On Feb 2, 2012, at 2:51 PM, Georg Seifert wrote: >>

Re: ARC and 10.6

2012-02-06 Thread Georg Seifert
>> I try to convert my app to use xCode 4.2 and ARC. My app uses several custom >> frameworks and plugins. I used the migration tool to enable ARC for all of >> them. >> >> As I still want to support Snow Leopard, I set the SDKROOT to 10.7 and the >> Deployment Target to 10.6. But if I do that,

Lion: unlocking a document

2012-02-07 Thread Georg Seifert
. Not all data is read from the original (binary) file and so I need to keep the original. Is there any way to prevent this. I would prefer that if the user unlocks the document, it actually is duplicated. Best Georg Seifert ___ Cocoa-dev mailing list

Lion: Lock documents and custom undomanager

2012-02-07 Thread Georg Seifert
Hi, I have several undomanagers in my app. (I know that is unusual. Think of it as if you had a page layout app and every page has its own undo.) This all works well except if the document is locked. Then the documents undomanager knows about this and prevents the change and generates a error.

xCode crash on validation for App Store

2012-02-26 Thread Georg Seifert
Hi, I’m using xCode 4.3. If I try to validate my app prior to uploading it to the Mac App Store, it constantly crashes. I get a crash report that says: UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[DVTFilePath compare:]: unrecognized selector sent to instance 0x409ab29c0 The same happen

Master Detail

2011-03-16 Thread Georg Seifert
Hi, If I have a master detail interface bound to a array controller. To explain my problem (the actual structure is different but as an explanation): The list shows a some persons. Then I have a switch that selects if the detail view shows the private or the work address. Is there any easy way d

Re: Master Detail

2011-03-17 Thread Georg Seifert
16.03.2011, at 18:50, Quincey Morris wrote: > On Mar 16, 2011, at 09:57, Georg Seifert wrote: > >> If I have a master detail interface bound to a array controller. >> >> To explain my problem (the actual structure is different but as an >> explanation): >> The li

diable localization

2011-04-05 Thread Georg Seifert
Hi, I what to give my users the possibility to disable the localization of my app. Is there a way to tell the system (NSBundle?) to always load the english nibs? Best Georg___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admi

Drawing custom group row in TableView

2011-04-05 Thread Georg Seifert
Hi, I have a custom NSTableView want to draw my own group row background. What Is the best way to do that. I subclassed NSTableView and use a subclass of NSTextfieldCell to draw the table. What I can’t figure out, what to overwrite to add my own drawing code. Any ideas? Best Georg

validate Mac App store recipe

2011-04-07 Thread Georg Seifert
Hi, I will bring my app to the app store soon and want to implement some validation of the app store recipe. But how do I test this. Where to get a valid recipe? Best Georg___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admi

Re: validate Mac App store recipe

2011-04-07 Thread Georg Seifert
Hi, Sorry for the noise. I found it. Thanks Georg Am 07.04.2011 um 12:07 schrieb Georg Seifert: > Hi, > > I will bring my app to the app store soon and want to implement some > validation of the app store recipe. But how do I test this. Where to get a > valid re

Re: diable localization

2011-04-08 Thread Georg Seifert
Hi, Many thanks. That worked perfectly. I need this to allow my users to disable localization. I use this: - (IBAction) setDisableLocalization:(id) sender { if ([sender state] == NSOnState) { [[NSUserDefaults standardUserDefaults] setObject:[NSArray arrayWithObject:@"e

Custom grid view

2009-08-17 Thread Georg Seifert
Hi, I try to implement a control with several NSTextCells in it. I have problems starting the edit mode. So fare I tried this (in the control’s mouseDown): NSText * textObj = [[self window] fieldEditor:YES forObject:_editCell]; [textObj setEditable:YES]; [textObj setFie

pulldown in custom NSCell

2009-08-21 Thread Georg Seifert
Hi, I want to build a custom cell similar to the one in "Transfer" list in Cyberduck. I need several pulldowns and input fields. I did looked at the code of Cyberduck but as it is written in Java I did not understand it completely. What I found is that the Cell, in its drawwithFrame metho

Re: pulldown in custom NSCell

2009-08-31 Thread Georg Seifert
Hi corbin and Andreas, Both approaches look promising. I will play with them. Thanks Georg What I found is that the Cell, in its drawwithFrame method, adds subview to the TableView and this subview handles all the drawing and handling. Is this appropriate or is there a better solution.

Re: Creating a Big and Resizable Question Mark in the Middle of a View

2010-08-15 Thread Georg Seifert
Or draw an attributed string in drawRect: calculate the font size from to the view size... Georg Am 15.08.2010 um 06:55 schrieb Peter Zegelin: > Yep that worked: > > NSString *file = [[NSBundle mainBundle]pathForResource:@"Question Mark" > ofType:@"pdf"]; > NSData *data = [NSData

disable animation of default button

2010-10-13 Thread Georg Seifert
Hi, I have a subclass of NSButton. The bezel style is set to "Push". If the button has the return key equivalent and becoming the default button (drawn blue) the "- (void) drawBezelWithFrame:(NSRect)cellFrame inView:(NSView *)controlView method gets called over end over again. In the standard i

data over USB to iPhone

2011-01-13 Thread Georg Seifert
Hi, Do I have any chance to transmit data from a mac to iPhone over USB? I have it running over wifi but the app would be used for a longer time next to the mac, so you need to plug it in anyways. thanks Georg___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: data over USB to iPhone

2011-01-16 Thread Georg Seifert
Thanks for all the answers. Only to clarify. I don’t want to communicate from the iPhone to some device but from the mac to the iPhone (as a divice). I did find some mentions of usbmuxd, and that it allows communication over USB. Does anyone know how to use it? Best Georg Am 14.01.2011 um 14:3

Crash in Mountain Lion

2012-08-31 Thread Georg Seifert
Hi, I get a lot crash reports that I can’t find anything about. It is completely in Apples code and only happens in MacOSX 10.8. A backtrace is attached. Can someone help me with this? Best Georg Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_CRASH (SIGABRT) Ex

autosavesInPlace and sandbox

2012-09-06 Thread Georg Seifert
Hi, I have a problem. My app (documents based) does not support Lions Version (returns NO in autosavesInPlace). This worked fine until I had to sandbox my app. The problem is, that now the NSDocument autosaving tries to create a file called "My Document Name (Autosaved).myExtension" next to the

Re: autosavesInPlace and sandbox

2012-09-06 Thread Georg Seifert
On 06.09.2012, at 15:32, Mike Abdullah wrote: > On 6 Sep 2012, at 13:36, Georg Seifert wrote: > >> Hi, >> >> I have a problem. My app (documents based) does not support Lions Version >> (returns NO in autosavesInPlace). This worked fine until I had to sandbox my

Re: autosavesInPlace and sandbox

2012-09-23 Thread Georg Seifert
Hi Sorry for not answering earlier. I was to busy with other things. Am 07.09.2012 um 15:36 schrieb Mike Abdullah: > > On 6 Sep 2012, at 23:27, Georg Seifert wrote: > >> >> On 06.09.2012, at 15:32, Mike Abdullah wrote: >> >>> On 6 Sep 2012, at 13:36

NSPanel should not close on command-W

2008-06-21 Thread Georg Seifert
Hello, I just added a panel to my program. I do not want that the panel closes on command-W. I did setBecomesKeyOnlyIfNeeded:YES. So It does not close if there is a document window. But if the last one is closed (with keyboard: command-W) also the panel closes. How do I prevent this? Tha

Re: NSPanel should not close on command-W

2008-06-21 Thread Georg Seifert
I just added a panel to my program. I do not want that the panel closes on command-W. I did setBecomesKeyOnlyIfNeeded:YES. So It does not close if there is a document window. But if the last one is closed (with keyboard: command-W) also the panel closes. How do I prevent this? I am not sur

Re: NSPanel should not close on command-W

2008-06-21 Thread Georg Seifert
I use the panel as a palette. Something like the systems font chooser. They have the close button enabled, but do not responde to close commands from the keyboard. Using TextEdit as an example, the font panel *will* close on command- w, if it becomes key. It is just that it won't become key

Re: NSPanel should not close on command-W

2008-06-21 Thread Georg Seifert
I wrote this earlier but send it directly to Marco. pleas excuse my carelessness. I just added a panel to my program. I do not want that the panel closes on command-W. I did setBecomesKeyOnlyIfNeeded:YES. So It does not close if there is a document window. But if the last one is closed (wit

Re: NSPanel should not close on command-W

2008-06-23 Thread Georg Seifert
Now I found out how panels works in Apple apps: (I did not use them often enough to be used to this behavior. I always had the panel from Adobe apps in mind ) The panels have the "setBecomesKeyOnlyIfNeeded:YES" set and thats it. Than they get closed by "command+W" if they have the focus (no

Re: NSPanel should not close on command-W

2008-06-23 Thread Georg Seifert
But it is still unclear to me *why* you want to do this. If your panel has a close box, and it is the window with keyboard focus, many users are going to expect Command-W to close that window. Going out of your want to disable that functionality is likely to frustrate these users. An exampl

caching NSCollectionView

2008-06-23 Thread Georg Seifert
Hello again, I have an other question: Does anybody got saving the item views working. I filed a but at apple about this but i was curios if anyone found a workaround. the problem is, that the stored NSCollectionViewItem does not retains the view: in my NSCollectionView subclass: - (NSCo

Re: caching NSCollectionView

2008-06-23 Thread Georg Seifert
Does anybody got saving the item views working. I filed a but at apple about this but i was curios if anyone found a workaround. The answer to this question depends entirely on what you're trying to accomplish (and how you have things wired). Unless you have a very good reason, however, you'r

multiple UndoManagers

2008-07-05 Thread Georg Seifert
Hello, I have a rather complicated undo setting My document Object has a Array of independent graphical items (containing some properties). Each item should have its own undo/redo based of selection in the interface. So I select Item_1, modify it, select Item_2 and modify it, too. Then I

Re: multiple UndoManagers

2008-07-05 Thread Georg Seifert
My document Object has a Array of independent graphical items (containing some properties). Each item should have its own undo/redo based of selection in the interface. So I select Item_1, modify it, select Item_2 and modify it, too. Then I want to be able to select item_1 again and undo

Re: multiple UndoManagers

2008-07-06 Thread Georg Seifert
doing it the conventional way is a much easier programming task too? cheers, Graham On 5 Jul 2008, at 9:07 pm, Georg Seifert wrote: Hello, I have a rather complicated undo setting My document Object has a Array of independent graphical items (containing some properties). Each item should

Remove overlap on NSBezierPath

2008-07-13 Thread Georg Seifert
Hello, I don’t know if this is the right place to ask ... How I can merge to bezierPaths and remove the overlap in Cocoa. Does anyone has exerience with this or can point me to some information? Thanks in advance Georg___ Cocoa-dev mailing list (

Re: Remove overlap on NSBezierPath

2008-07-14 Thread Georg Seifert
Hello, Thanks for you replies. To clarify: I need it in a small drawing app, where you can draw shapes and then you should be able to combine them. There is no outline but the winding is quite important (there may be overlapping, clipping and self intersecting parts). I did found DrawKit

Re: Creating and App menu from Scratch

2008-07-14 Thread Georg Seifert
programming in XCode/cocoa. my biggest project: http://www.pantografer.de/info/Pantografer_edit.png I also contributed some interface tweaks to vlc. If there is any interest from either opensource or commercial projects please contact me. Georg Seifert

moving subviews

2008-08-12 Thread Georg Seifert
Hello, I have a big document view. On it I place some small subviews. I f I scroll the document view, the subviews should move with it but only till it reaches the edge of the visible area of the main view. e.g: if i move the main view down, and the subview hits the scrollbar, it should s

@try @catch

2008-08-14 Thread Georg Seifert
hello, is it recommended to use @try .. @catch blocks as flow control like it is used in Python. They say explicitly to use it rather than do a lot of test before just try if it works to look after it only if it fails. I could imagine something: - (id) layerInstance { if ([[layerIns

call "setContentBorderThickness:forEdge:" in Tiger

2008-08-25 Thread Georg Seifert
Hello, I have a problem: - (id)initWithContentRect:(NSRect)contentRect styleMask: (unsigned int)windowStyle backing:(NSBackingStoreType)bufferingType defer: (BOOL)deferCreation { BOOL useTextured = YES; if([self respondsToSelector:@selector(setContentBorderThickness:forEdge:)]) {

Re: call "setContentBorderThickness:forEdge:" in Tiger

2008-08-25 Thread Georg Seifert
2008 at 12:22 PM, Georg Seifert <[EMAIL PROTECTED]> wrote: Hello, I have a problem: - (id)initWithContentRect:(NSRect)contentRect styleMask: (unsigned int)windowStyle backing:(NSBackingStoreType)bufferingType defer: (BOOL)deferCreation { BOOL useTextured = YE

Re: call "setContentBorderThickness:forEdge:" in Tiger

2008-08-26 Thread Georg Seifert
Hello Johan, this was the mystery: Why it crashes with "NSMinXEdge" when I only use "NSMinYEdge". But the comment from Shawn helped me find the right answer. I have to set the "Base SDK" to 10.5 and the "deployment SDK" to 10.4. This, at least, solved the crash on Leopard. I cannot test i

EPS

2008-09-10 Thread Georg Seifert
hello, is there a way to create EPS data from code? I need it to put in in pastboard. Does anyone can point my to some docs as I cant find any. What I want to do, is to copy a NSBezierPath to Illustrator and back. Thanks Georg ___ Cocoa-dev mailing

menu with checkbox

2008-09-10 Thread Georg Seifert
hello, I have a NSPopupButton. What I need is that each item has a checkbox in front of its label. The menu needs to be selectable like with any normal NSPupupButton but when I click the checkbox it should just check the box but should not change the selection. Does anyone can help me wit

Re: menu with checkbox

2008-09-10 Thread Georg Seifert
Farmer: On 10 Sep 08, at 12:02, Igor Mozolevsky wrote: 2008/9/10 Andrew Farmer <[EMAIL PROTECTED]>: On 10 Sep 08, at 08:20, Georg Seifert wrote: I have a NSPopupButton. What I need is that each item has a checkbox in front of its label. The menu needs to be selectable like with any

Re: EPS

2008-09-10 Thread Georg Seifert
On 11 Sep 2008, at 1:13 am, Georg Seifert wrote: hello, is there a way to create EPS data from code? I need it to put in in pastboard. Does anyone can point my to some docs as I cant find any. What I want to do, is to copy a NSBezierPath to Illustrator and back. does [NSView

Re: menu with checkbox

2008-09-11 Thread Georg Seifert
My unsolicited advice: Don't use a popup menu; embed the table view in a palette. Popup menus with multiple controls in them are not a standard UI component, and are likely to generate significant user confusion. (Doubly so when there's two levels of checked-ness involved.) I just thou

Re: Rounding very small numbers.

2008-09-11 Thread Georg Seifert
cant you just multiply with 1, round it and divide 1? g Am 11.09.2008 um 10:11 schrieb Ryan Ragona: Hey all, I've been scouring the archives, but coming up without any solution that seems to work in my application. Here is the issue: I have some tiny numbers, like -0.00116916,

Dynamically register document types

2009-01-12 Thread Georg Seifert
hello, I have a program that uses plugins for supporting a wide range of documents. Is there a way to tell Launch Services to include new file types if I install a new plugin? I only found a discussion on cocoadev (http://www.cocoadev.com/index.pl?DynamiclyRegisteringDocumentTypes ) wher

open folders as documents

2009-01-13 Thread Georg Seifert
hello, I want to be able to select folders (with a certain extension, but no registered file type) in the open dialog of a NSDocument app. - Is there a possibility to register a filetype without loosing the ability to see the content in the finder (without selecting "show content")? - or

custom formating of NSAttributedString

2009-03-01 Thread Georg Seifert
hello, I want to apply some custom styles to a attributed string with a format bar (like in iWorks). How do I connect my controls (pulldown or checkboxes) with the attributes in the selected range of the string. Can I use binding or do I need to do it all manually (react on every change

file references in CoreData

2008-10-29 Thread Georg Seifert
hello, I’m very new to CoreData and can’t find anything on this: I need to store references to local files in CoreData. What is the best solution for this. Just now I use plain paths but there has to be a better way. Thanks Georg___ Cocoa-dev ma

Re: file references in CoreData

2008-10-30 Thread Georg Seifert
Many thanks for your replies. I will try out the aliases. Georg ___ 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

coredata: building tree from Entities

2008-10-30 Thread Georg Seifert
hello, once again a beginner question on coredata. I want to display my data in a outlineview grouped one of the entities attributes. my Data: Elements ( {"titel1", "name1"}, {"titel1", "name2"}, {"titel2", "name3"}, {"titel2", "name4"}, {"titel2", "na

Image from font file

2008-10-30 Thread Georg Seifert
hello, I wonder what is the best way to render images from a font file with a given string. The font is not activated in the system. I came up with: - using Quicklook, but I could only get images with "Ag" (like the icon for font files), not the alphabetic overview I get in the finder. (i

Re: Image from font file

2008-10-30 Thread Georg Seifert
Oct 30, 2008, at 11:40 , Georg Seifert wrote: hello, I wonder what is the best way to render images from a font file with a given string. The font is not activated in the system. I came up with: - using Quicklook, but I could only get images with "Ag" (like the icon for font f

image in CoreData

2008-11-06 Thread Georg Seifert
hello I have a NSCollectionView populated with bindings. I want to show images witch are generated dynamically. I do not want to store those images in CoreData (at least not written to disk). should I use an extra dictionary? Or subclass my entity? any suggestion is welcome Georg

sourceView subnodes from CoreDate

2008-11-06 Thread Georg Seifert
Hello, I have a OurlineView/SourceView similar to iTunes. I want to implement playlists. I use CoreData and bidings for my Data. Is it possible to only store the content of one (top)node of the SourceView (populated with a NSTreeController) in CoreData? Or what would be a good solution to

Re: Image from font file

2008-11-10 Thread Georg Seifert
Once again me, I just did a bit more searching. I found a quicklook-sample with displays a QLPreviewPanel. It shows the same image then the finder. But I like to get this image as a NSImage inside my app. I use: QLThumbnailImageCreate but only get a thumbmail-like image. Is there any way to

find out where is a key equivalent assigned

2009-04-09 Thread Georg Seifert
n to track the event handling but with no success. I get the keypress event in NSApplication sendEvent: and in NSWindow sendEvent: but nothing more. How do I find out where the event goes after this? Many thanks Georg ::::::: Georg Seifert type and graphic design new:

Re: find out where is a key equivalent assigned

2009-04-10 Thread Georg Seifert
I do not have spaces turned on. And if I open a fresh project is workes. Georg I have a old project with a big nib file and it seems that somewhere is a key equivalent defined for "ctrl+left cursor key". If I press "ctrl+left cursor key" nothing happend (option+left and everything else works

Memory management in QuickLook plugin

2009-05-20 Thread Georg Seifert
Hi, I’m developing a QuickLook plugin for a custom binary file format. As long as I did not cared about memory leaks everything was fine. Then I fixed the leak with the help of Instruments. Everything runs fine from xCode and Instruments but now it crashes if I run the plugin from the find

Re: Memory management in QuickLook plugin

2009-05-20 Thread Georg Seifert
Hi, I’m developing a QuickLook plugin for a custom binary file format. As long as I did not cared about memory leaks everything was fine. Then I fixed the leak with the help of Instruments. Everything runs fine from xCode and Instruments but now it crashes if I run the plugin from the find

Fwd: Memory management in QuickLook plugin

2009-05-21 Thread Georg Seifert
As alway I didn’t send it to the list... Use Zombies and Instruments. http://www.corbinstreehouse.com/blog/index.php/2007/10/instruments-on-leopard-how-to-debug-those-random-crashes-in-your-cocoa-app/ I do this all the time, but can’t figure out how to use Instruments with "quicklookd".

define UTI in QuickLook plugin

2009-05-25 Thread Georg Seifert
Hi, I have a QuickLook Plugin for a file format without a defined UTI, but has a defined fileType – the program is very carbonish. The developer promised to export the UTI in the next version but this will take another year or so). For now I use the dynamic UTI. This works so far. How sav

Re: define UTI in QuickLook plugin

2009-05-25 Thread Georg Seifert
Am 25.05.2009 um 16:58 schrieb Sean McBride: On 5/25/09 4:21 PM, Georg Seifert said: I have a QuickLook Plugin for a file format without a defined UTI, but has a defined fileType - the program is very carbonish. The developer promised to export the UTI in the next version but this will

Re: Very slow NSTableView

2017-07-05 Thread Georg Seifert
Any reason you set the tableview to be "Source List". Set it to regular and it will work perfectly. It seems that the NSPopUpButtonCell don’t like to be in a source list. Maybe you can subclass it and draw yourself? Georg > On 05.07.2017, at 03:36, Graham Cox wrote: > > >> On 5 Jul 2017, at

Re: Exception handling

2018-06-14 Thread Georg Seifert
The hockeyApp framework has a lot explanation about this: https://www.hockeyapp.net/help/sdk/mac/4.0.2/Classes/BITCrashExceptionApplication.html Best Georg Seifert > Am 14.06.2018 um 14:33 schrieb Casey McDermott : > > Thanks, this is all useful info. I checked NSExceptionHa

Typing with multiple selections in NSTextView

2018-09-19 Thread Georg Seifert
Hi Is it possible to make NSTextView to allow typing with multiple insertion points? One can set multiple selection and delete all of them at once. But typing only replaces the first range and ignores the other ranges. Thanks Georg ___ Cocoa-dev mai

Re: Typing with multiple selections in NSTextView

2018-09-19 Thread Georg Seifert
iew’s code never sees multiple zero-length selections and never > potentially enters unknown states. > > Good luck! > > ~Martin Wierschin > > >> On Sep 19, 2018, at 12:13 AM, Georg Seifert > <mailto:georg.seif...@gmx.de>> wrote: >> >> Hi >>

Re: NSDrawer

2018-10-03 Thread Georg Seifert
But you can simulate a drawer by adding the extra view and resizing the window to fit. This is done automatically when you use autolayout (a stack view would be more useful than a split view) or a few lines of code when you do it manually. georg > On 3. Oct 2018, at 04:00, Casey McDermott wr

  1   2   >