Re: Objective-C selector names in disassembly

2022-04-03 Thread Martin Wierschin via Cocoa-dev
I'm running my app's project in Xcode as normal, so that's a debug version. But I'm interested in selector names for system frameworks, which are naturally final release versions that are part of macOS. ~Martin > On Apr 3, 2022, at 3:24 PM, Alex Zavatone wr

Re: Objective-C selector names in disassembly

2022-04-03 Thread Martin Wierschin via Cocoa-dev
;t bother to do this during debugging. Oh well. Thanks again! ~Martin Wierschin > On Apr 3, 2022, at 1:55 PM, dev.iceberg wrote: > > Hopper Disassembler ? > > Envoyé de mon iPhone > >> Le 3 avr. 2022 à 21:36, Martin Wierschin via Cocoa-dev >> a écrit : >&g

Objective-C selector names in disassembly

2022-04-03 Thread Martin Wierschin via Cocoa-dev
ow things were implemented. I forget when this changed. I know it was triggered by optimizations to the Obj-C runtime. But not being able to see selector names is like being blindfolded. Is there a good way to discover this information in the modern runtime / toolchains? Thanks for any tips! ~M

Re: Several different NSUserDefaults in the same app?

2021-04-06 Thread Martin Wierschin via Cocoa-dev
d this same approach in my own code. You can extend NSUserDefaults to add methods that provide a fallback value without first registering the values separately via a plist file. ~Martin Wierschin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pl

Re: Exception not being caught in try statement

2021-03-29 Thread Martin Wierschin via Cocoa-dev
ould only use this for testing to gather additional debug information. ~Martin Wierschin > On Mar 26, 2021, at 11:22 AM, Mike Abdullah via Cocoa-dev > wrote: > > This does seem quite surprising. However, here’s the thing: this code is very > strange approach to take. > > Nu

Re: Cocoa dylib access by C program

2020-11-13 Thread Martin Wierschin via Cocoa-dev
WithCapacity:32]; } pure.c #include "MyBridge.h" void RegularFunction() { DoObjectiveCStuff(); } I hope that helps! ~Martin Wierschin > On Nov 13, 2020, at 11:16 AM, Carl Hoefs via Cocoa-dev > wrote: > > I have built an ObjC/Cocoa/Foundat

NSView draws unwanted "seams" for certain zoom factors

2020-10-08 Thread Martin Wierschin via Cocoa-dev
But this is naturally a hack, and not a complete solution. The seams still occur, just less often. Can I somehow opt my view out of implicit layer backing? Is there a modern way to implement zoom now that everything is using layers? Thanks for any help! ~Martin Wierschin

Re: Localization under Catalina

2020-05-27 Thread Martin Wierschin via Cocoa-dev
r translated text doesn't overlap adjacent controls and that kind of thing, but it's going to be awkward and finicky. Autolayout is really the key to making a single set of source xibs from Base.lproj work for all localizations. ~Martin Wierschin Nisus Software /

Re: Localization under Catalina

2020-05-27 Thread Martin Wierschin via Cocoa-dev
ch cleaner. ~Martin Wierschin Nisus Software / Developer Solana Beach ☀️ California ___ 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: [OT] NSTimer +timerWithTimeInterval:

2020-04-30 Thread Martin Wierschin via Cocoa-dev
ot from the timer's side of things. All that said, the "newData" method name is best changed so as not to confuse anyone who does know the correct naming conventions. ~Martin Wierschin > On Apr 29, 2020, at 3:55 PM, Alex Zavatone via Cocoa-dev > wrote: > > Sandor, it’s

Re: What is the preferred way to set NSTextView content from NSAttributedString?

2020-02-03 Thread Martin Wierschin via Cocoa-dev
es all current text. You should not need to manually call -setNeedsDisplay: on the NSTextView as was suggested earlier. If you're working with the right NSTextStorage then its view should observe the changes and automatically mark any redisplay as needed. ~Martin Wierschin > On Feb 02,

Re: Difficulties with recovering NSAttributedString attachments from saved RTFD

2019-12-01 Thread Martin Wierschin via Cocoa-dev
it myself to be sure, since I don't recall seeing it mentioned explicitly. ~Martin Wierschin ___ 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 co

Re: Typing with multiple selections in NSTextView

2018-09-20 Thread Martin Wierschin
It can be relatively tricky to enhance the text system in ways not originally conceived of by Apple. Still, NSTextView and friends are overall some nice tools. Best, ~Martin Wierschin > On Sep 19, 2018, at 11:54 PM, Georg Seifert wrote: > > Thanks for the explanation. > >

Re: Typing with multiple selections in NSTextView

2018-09-19 Thread Martin Wierschin
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 wrote: > > Hi > > Is it possible to make NSTextView to allow typing with multiple insertion > points? On

Re: Mac App Store paid upgrades and app settings

2018-08-13 Thread Martin Wierschin
n place the new app version can autodetect this and import the data as needed. Many thanks! ~Martin Wierschin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderat

Re: Mac App Store paid upgrades and app settings

2018-08-13 Thread Martin Wierschin
n alert and folder selection dialog. ~Martin Wierschin > On Aug 13, 2018, at 1:08 PM, Richard Charles wrote: > > >> On Aug 13, 2018, at 10:17 AM, Martin Wierschin wrote: >> >> The new version is to be a paid upgrade, which I know the MAS doesn't really

Mac App Store paid upgrades and app settings

2018-08-13 Thread Martin Wierschin
an open folder dialog, to obtain access, but that seems like a kludge. Does anyone have any other suggestions? Thanks for any advice or ideas! ~Martin Wierschin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests o

Re: UNIX error exception: 17

2018-06-09 Thread Martin Crane
Is this on 10.14? I saw similar for my app, raised it with Apple and was told it’s nothing to be addressed in my app. -Martin > On 9 Jun 2018, at 10:00, Saagar Jha wrote: > > I can’t tell you anything else without more details, but I do know that errno > 17 is EEXIST: File e

NSStatusItem unresponsive after reordering

2018-01-15 Thread Martin Crane
:-/ Note that I’m targeting 10.8+ so I don’t have access to the new button part. Thanks, Martin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa

Re: [ANN] Nursery is an Object Persistent Framework

2017-10-02 Thread Martin Crane
Yep.. 😒 Just in case the OP is unaware: https://en.wikipedia.org/wiki/Pedophilia > On 2 Oct 2017, at 14:07, SevenBits wrote: > > I'm not sure if you're aware (or joking), but IMO that's not a great choice > for a domain name. > > On Mon, Oct 2, 201

Re: cell-based NSTableView, NSArrayController and first responder

2017-07-12 Thread Martin Hewitson
> On 12 Jul 2017, at 14:32, Ken Thomases wrote: > > On Jul 12, 2017, at 4:52 AM, Martin Hewitson > wrote: >> >> I have a new bug in an application which I believe has only appeared in >> 10.12. >> >> I have a cell-based NSTableView backed by an NS

cell-based NSTableView, NSArrayController and first responder

2017-07-12 Thread Martin Hewitson
can’t figure out why, and as I say, this seems to be new behaviour. Has anyone else hit this issue and solved it? Or does anyone have any pointers where to start digging? I reviewed all the bindings and tableview setup, but I haven’t changed anything here in years. Many thanks, Martin

Re: How to pre-select a file in NSOpenPanel -- specifically, a .app bundle?

2016-06-24 Thread Martin Wierschin
naturally it was closed as a duplicate. As everyone says, maybe file your own radar report to register a vote with Apple. Though considering how long this functionality has gone missing, I doubt we’ll see any changes– especially if Apple considers this any kind of security risk. ~Mart

Re: Where are my bytes hiding?

2016-05-05 Thread Martin Wierschin
les installed as part of Mac OS X; user > files are typically not compressed (but certainly can be!) Are a lot of system files compressed like this? Is there any way a user file might be compressed in such a way through normal user actions? ~Martin Wierschin ___

Re: undomanger performance

2016-05-02 Thread Martin Wierschin
ion would likely be more efficient than millions of undo invocations each with their own state information. ~Martin Wierschin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Co

Re: nsopenpanel no title bar

2016-04-27 Thread Martin Wierschin
> Since 10.11 it seems the title bar no longer appears even when using > setTitle: does anyone know what happened and how to get the old behavior back? I don’t know anything about that, but you can always use -[NSOpenPanel setMessage:] to display relevant information to the user. ~

Re: How to Truncate lines in NSScrollView/NSClipView/NSTextView Combo

2016-04-27 Thread Martin Wierschin
That's typed into Mail and may have errors, but you get the idea. ~Martin Wierschin ___ 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-admi

Re: Faster scrolling after resizing window

2016-01-22 Thread Martin Huber
some minor internal optimizations. Martin >> Il giorno 17 gen 2016, alle ore 5:16 AM, Martin Huber >> ha scritto: >> >> I have a strange problem in my application (on 10.11, but I don't know >> whether that's important). After opening a document, scrollin

Faster scrolling after resizing window

2016-01-17 Thread Martin Huber
27;t have any layers. Does anybody know what -[NSWindow zoom:] and -[NSWindow setFrame:display:animate:YES] might change at the window, so that following scrolls are faster? Martin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not po

Re: NSWindow

2015-11-30 Thread Martin Wierschin
filed a duplicate. ~Martin Wierschin ___ 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

Re: ARC and Manual Memory Management

2015-08-10 Thread Robert Martin
I found fmdb’s solution instructive and very helpful. If you download the source and take a look it might give you some ideas. Rob ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reques

Re: NSPropertyListSerialization weirdness

2015-07-26 Thread Robert Martin
Thanks Jens, I’ll test for NSNulls instead. I know the dictionary is valid because after I read it with dictionaryWithContentsOfFile:, I log it, and it ‘looks' fine… > On Jul 26, 2015, at 5:44 PM, Jens Alfke wrote: > > >> On Jul 26, 2015, at 2:28 PM, Robert Martin w

NSPropertyListSerialization weirdness

2015-07-26 Thread Robert Martin
I’m having some issues. I’m tracking a folder that is I watch via kqueue, and if a .plist arrives, I process it immediately. The plist contains a dictionary, which is successfully read with dictionaryWithContentsOfFile:. If I log the dictionary description, it is accurate. The dictionary only co

Re: Safe time to add accessory view to NSSavePanel in sandboxed app?

2015-07-17 Thread Martin Wierschin
ly) temporarily unavailable. This time the app crashed while trying to generate that alert; -[NSAlert init] was loading some localized string and crashed[2]. I doubt this is going to be reproducible, but it's reported as rdar://21881669. ~Martin Wierschin [1] INITIAL EXCEPTION: MyApp

Re: NSPredicate or Collection operators?

2015-07-16 Thread Martin Wierschin
iency doesn't matter here, since otherwise your dictionary would be keyed on the "smi" property, but it's a side benefit. If you were concerned about efficiency in this case you could set the test block's stop parameter to YES once you'd found the first match. ~Mar

Re: Safe time to add accessory view to NSSavePanel in sandboxed app?

2015-07-16 Thread Martin Wierschin
el by calling [panel setAccessoryView:nil]. And after reviewing my code, it turns out that my app doesn't recycle/reuse accessory view instances after all. I thought it still did, but that was some time ago, when the open/save panels were slow as death under sandboxing. ~Martin Wierschin >

Re: Safe time to add accessory view to NSSavePanel in sandboxed app?

2015-07-16 Thread Martin Wierschin
n implies that it's safe, as long as you handle the memory management properly: > If you want to reuse the accessory view, you should not rely on the panel to > hold onto the accessory view until the next time you use it; instead, you > should

Re: C Sharp?

2015-07-16 Thread Glenn R. Martin
Is there any reason we can't just provide a lipo'd fat archive of both 32 and 64? That wouldn't break MonoDevelop I would think. Sent from my iPhone > On Jul 16, 2015, at 09:38, Dave wrote: > > I’m trying to run this Script: > > PREFIX=/usr/local > > > # Ensure you have write permissions t

Re: Why would scroll events not arrive?

2015-06-29 Thread Martin Wierschin
[[self enclosingScrollView] scrollWheel:fakeEvent]; CFRelease(cgEvent); } } [super scrollWheel:event]; } I’m posting this on the off-chance it might be helpful to someone else down the line. ~Martin

Re: Why would scroll events not arrive?

2015-06-26 Thread Martin Wierschin
disrepair. This problem has only been reported by users on OSX 10.10.x. Anyways, I appreciate your reply. I’ll continue to work with my testers and see if I can’t narrow down the cause. ~Martin Wierschin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Why would scroll events not arrive?

2015-06-26 Thread Martin Wierschin
ason this could happen? Thanks in advance for any ideas on possible causes, ~Martin Wierschin ___ 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 coc

Re: NSDocumentTitlebarPopoverViewController zombie on Yosemite

2015-06-10 Thread Martin Wierschin
self, _cmd); } @end I hope that helps, ~Martin Wierschin >>> After enabling Zombie Objects, I get the following in the console: >>> 2015-05-28 14:19:58.291 MyApp[23684:2561441] *** >>> -[NSDocumentTitlebarPopoverViewController isKindOfClass:]: message sent to &g

Re: Rotate a standard Cocoa control?

2015-05-08 Thread Robert Martin
Graham, Thanks so much for posting this. I’ve always wondered how to go about doing this kind of thing, but never had the actual need in a project to prod me to figure it out. Your app and code are terrific at making things clear. Thanks, Rob > On May 7, 2015, at 11:54 PM, Graham Cox wrote:

Re: Crash when move open document based app file to trash

2015-04-15 Thread Martin Wierschin
senter and should cope with access from multiple processes (eg: Jonathan's app and the Finder). ~Martin Wierschin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Con

Re: Getting at NSTextFinder from text view

2015-04-14 Thread Martin Hewitson
> On 14 Apr 2015, at 14:22, Shane Stanley wrote: > > On 14 Apr 2015, at 10:05 pm, Martin Hewitson > wrote: >> >> Hmm, are you sure about this? I was just able to produce one. In my first >> text storage I have a long string and search for a common word like “

Re: Getting at NSTextFinder from text view

2015-04-14 Thread Martin Hewitson
> On 14 Apr 2015, at 13:30, Shane Stanley wrote: > > On 14 Apr 2015, at 9:19 pm, Martin Hewitson > wrote: >> >> But if it fails for the first subsequent search, then the crashes will still >> happen if the old search results are out of range of the new strin

Re: Getting at NSTextFinder from text view

2015-04-14 Thread Martin Hewitson
> On 14 Apr 2015, at 13:11, Shane Stanley wrote: > > On 14 Apr 2015, at 8:39 pm, Mark Wright wrote: >> >> It would seem that in both your cases NSTextView should be fully aware of >> all this by itself. Perhaps the problem is in switching the NSTextStorage >> out without notifying the text

Re: Getting at NSTextFinder from text view

2015-04-13 Thread Martin Hewitson
deal with this. I’ve been in touch with Apple and even provided my test project, but that was a long time ago, and still the issue remains. So either there is a bug, or I’m doing something wrong in swapping out the text storage for the text view. Cheers, Martin > On 13 Apr 2015, at 04

Re: highlight a nsview on click-drag?

2015-03-15 Thread Robert Martin
Why bother with a timer loop to animate the wiper when that functionality is built-in through CoreAnimation? Especially since you are using an image as the wave background. CoreAnimation will move the wiper smoothly and accurately. All you have to do is provide the distance it must travel and th

Re: NSTextView Copy-and-Paste Problem

2015-03-02 Thread Martin Wierschin
erstanding of your custom attribute keys, and thus cannot encode them. If you need to preserve you own custom attributes when copy-pasting within your app, you’ll need to override the copy-paste methods in your NSTextView subclass to add a custom pasteboard data type with higher

Re: deny file-read-data after launch

2015-01-14 Thread Martin Wierschin
certain number. But if you only have this one folder you’re not going to run out, nor do much to “leak kernel resources”. ~Martin Wierschin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator com

Re: URLByResolvingBookmarkData not case sensitive

2015-01-07 Thread Robert Martin
Ignore my previous post - I hadn’t looked at the thread! > On Jan 7, 2015, at 8:40 AM, Robert Martin wrote: > > Since the file system is case insensitive, why not store the path in upper or > lower case, and convert the path you’re comparing accordingly? > >> When adding

Re: URLByResolvingBookmarkData not case sensitive

2015-01-07 Thread Robert Martin
Since the file system is case insensitive, why not store the path in upper or lower case, and convert the path you’re comparing accordingly? > When adding new files, I need to make sure the file is not already in the > database so I compare the paths. This works well except when the case > chang

Re: NSTextView and Syntax Highlighting

2014-12-19 Thread Martin Hewitson
Originally I was using standard attributes, but this was way too slow (at least the way I did it) for large documents. Cheers, Martin > On 20 Dec 2014, at 00:44, ecir hana wrote: > > On Fri, Dec 19, 2014 at 6:58 PM, Quincey Morris < > quinceymor...@rivergatesoftware.com> wrot

Re: Layer-backed multiline text view rendering dim

2014-12-01 Thread Martin Stoyanov
On Dec 01, 15:38 PM, sli...@araelium.com wrote: Layer-backed multline text fields are drawing dimmer than otherwise *identical* layer-backed single line fields. The only difference is the "multiline" field has a new line in its text value. Here's an example: http://sethwillits.com/temp/upshot/

UITableView - distinguish selection from drill-down

2014-11-07 Thread Martin Hewitson
cell selects it, and touching the right side drills-down. Is such a thing possible/supported? I tried googling around a bit but I failed to find a good search string; always ended up with basic drill-down tutorials. Looking for good ideas…. Many thanks, Martin

Re: App store rejection, inappropriate sandboxing

2014-10-29 Thread Martin Hewitson
Iain, I forgot to say that this was the first thing I checked when the apps were first rejected. I moved from the automatic provisioning profile to explicit ones, but still the apps were rejected. Maybe I still got the provisioning profiles wrong. I’ll double check. Thanks! Martin > On

App store rejection, inappropriate sandboxing

2014-10-29 Thread Martin Hewitson
, and that under Capabilities the Maps switch is off. The resolution centre is suggesting that I use a DTS ticket to resolve this, but before I do, has anyone else had the same problem and found a solution? All submissions were made using Xcode Version 6.1 (6A1046a). Many thanks, M

Re: Predicate warning from text view

2014-10-24 Thread Martin Wierschin
blic.image") I filed it as rdar://17541734 which was marked as a duplicate of rdar://17432480 which is apparently closed now. Perhaps the problem was reintroduced, or this has a different source? In any case, I never observed any actual ill e

Re: Get text with hyphenation

2014-10-09 Thread Martin Wierschin
ethod, so you can't call super. It's only provided to be implemented in subclasses. But you could still perhaps assume that when NSTypesetter calls this method, it intends to insert a hyphen. ~Martin Wierschin ___ Cocoa-dev mail

Re: Get text with hyphenation

2014-10-09 Thread Martin Wierschin
gment using -[NSLayoutManager glyphAtIndex:]. Another potential approach: you might subclass the typesetter and override -[NSTypesetter shouldBreakLineByHyphenatingBeforeCharacterAtIndex:] and record the instances where super returns YES. I hope that helps, ~Martin Wierschin > It wo

Re: Adding a GPS to a Mac for Core Location?

2014-09-17 Thread Clark Martin
KK6ISP Yet another designated driver on the information super highway. > On Sep 17, 2014, at 3:01 PM, Rick Mann wrote: > > >> On Sep 17, 2014, at 06:35 , Bill Cheeseman wrote: >> >> I'm interested in the answer, too. In the meantime, note that Core Location >> makes good use of wi-fi data

Re: NSSpellChecker exception

2014-08-19 Thread Martin Wierschin
.. I can't speak with any authority, but my apps having been ignoring those port exceptions during beta testing for years to good effect. You may also want to add NSAccessibilityException to your ignore list, since it is also seems to be caught by Apple frameworks as necess

Re: awakeFromNib multiple objects - all connected?

2014-07-04 Thread Robert Martin
The nib is only ‘awake’ after all connections in the graph have been made. On Jul 4, 2014, at 11:18 PM, Trygve Inda wrote: > So the bottom line is: > > When an object in a nib receives awakeFromNib are all the outlets throughout > the entire nib hooked up, or only those outlets in the object th

Re: document inexplicably becomes locked and fails to save under sandboxing

2014-06-12 Thread Martin Wierschin
ng machinery by returning YES from +autosavesInPlace. Unfortunately setting the key NSURLIsUserImmutableKey to @NO does not solve our particular problem. Thanks all the same for sharing your experience. Best, ~Martin Wierschin ___ Cocoa-dev maili

Re: document inexplicably becomes locked and fails to save under sandboxing

2014-06-12 Thread Martin Wierschin
dbox will eventually show the document as locked and/or deny the user access to the file. Filed as radar://17291335 This is a huge problem for our app, so if anyone has any other tips, I'd be very appreciative. Thank you, ~Martin Wierschin

Re: document inexplicably becomes locked and fails to save under sandboxing

2014-06-11 Thread Martin Wierschin
ler's open methods and match up the file URL to completion handlers I've stashed away somewhere. Not a big deal, but a little ugly. Best, ~Martin Wierschin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: document inexplicably becomes locked and fails to save under sandboxing

2014-06-11 Thread Martin Wierschin
d document lists. The merits of this particular feature aside, I would expect this to work. It seems an oversight that you can't use bookmark data to reopen documents. I suppose I'll file a radar, though I'll still need to workaround this somehow. Thanks again for your reply, ~Marti

document inexplicably becomes locked and fails to save under sandboxing

2014-06-10 Thread Martin Wierschin
hat restores successful saving, it doesn't prevent "— Locked" from appearing in the document's titlebar. Thank you for any ideas or help! Best, Martin Wierschin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Getting an index for NSMutableAttributed string using tags in RTF

2014-04-28 Thread Martin Wierschin
AttributedString, you can search for the NSAttachmentCharacter Unicode character to find the image attachment in the string. ~Martin On Apr 20, 2014, at 2:43 AM, Pax <45rpmli...@googlemail.com> wrote: > I have an NSTextView which is being populated using RTF: &

Re: PDFView not rendering pages on scroll

2013-12-23 Thread Martin Hewitson
nteresting 'feature' - the thumbnail view in the sample app always seems to work. A mystery… Surely someone else must have hit this problem - either I’m doing something wrong, or anyone who uses a PDFView and builds on 10.9 with a deployment target of 10.6.8 must hit this issue. Hoping for

Re: PDFView not rendering pages on scroll

2013-11-24 Thread Martin Hewitson
remain blank) on 10.6.8. I tried enabling and disabling the core animation layer for the PDFView and also its superview, but to no effect. I guess it’s time to use a DTS ticket. Cheers, Martin On 16 Nov 2013, at 08:01 am, Martin Hewitson wrote: > Michael, > > Thanks for the clue.

Re: No Accessibility for Many Status Items

2013-11-15 Thread Martin Hewitson
tus items need to implement some special magic to be navigable? Martin > > Jerry > > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. >

Re: PDFView not rendering pages on scroll

2013-11-15 Thread Martin Hewitson
because I tried rolling my app back to the last version that did work on 10.6.8 (2 point releases ago), but the problem persisted. Yet if I download the older version from my website then it runs fine on 10.6.8, so it’s clearly a build issue of some kind. Thanks! Martin On 15 Nov 2013, a

Re: PDFView not rendering pages on scroll

2013-11-14 Thread Martin Hewitson
what it is? Many thanks, Martin On 04 Nov 2013, at 06:33 pm, Martin Hewitson wrote: > Further info: compiling my app with SDK 10.8 under Xcode 5.0.1 on Mavericks > still produces a binary that doesn’t work on 10.6.8 (regarding unrendered pdf > pages). How can this be? I have been com

Re: PDFView not rendering pages on scroll

2013-11-04 Thread Martin Hewitson
… Martin On 02 Nov 2013, at 08:00 am, Martin Hewitson wrote: > Dear list, > > I have an app which uses a PDFView to display (not surprisingly) a PDF. If I > compile the app with the 10.9 SDK then I see two new 'features': > > 1) I implement -drawPagePost: in my PDF

PDFView not rendering pages on scroll

2013-11-02 Thread Martin Hewitson
ne got any ideas? Martin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscript

Re: NSTableview row-based, not redrawing on 10.9

2013-10-26 Thread Martin Hewitson
ugly flash of black when the tableview first appears, but at least the rows which get scrolled into view are drawn properly. This feels really icky, and I shouldn’t need to be doing this, but…. Martin On 25 Oct 2013, at 09:07 pm, Martin Hewitson wrote: > Implementing this doesn’t seem

Re: core data merge errors on 10.9

2013-10-26 Thread Martin Hewitson
l, I wonder why this happens in 10.9 but not in 10.6-10.8. Cheers, Martin On 25 Oct 2013, at 08:46 pm, Martin Hewitson wrote: > Dear list, > > I have two different core data apps, both of which are exhibiting similar > behaviour in that they sometimes (for some changes in so

Re: NSTableview row-based, not redrawing on 10.9

2013-10-25 Thread Martin Hewitson
Implementing this doesn’t seem to make any difference. I checked that it is called. In any case, the release notes say that responsive scrolling is not active if you link against 10.7, which I do. Martin On 25 Oct 2013, at 08:47 pm, Michael Cinkosky wrote: > I believe you need to implem

core data merge errors on 10.9

2013-10-25 Thread Martin Hewitson
what I can try or what might have changed to cause these problems? Many thanks, Martin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-a

NSTableview row-based, not redrawing on 10.9

2013-10-25 Thread Martin Hewitson
different colours depending on the colour of the row background they are embedded in. My drawRect: is below, in case there is something fishy in there that might be causing this. Any one else seen this behaviour? Thanks, Martin - (void)drawRect:(NSRect)dirtyRect { NSView *superview = [self

Re: Confirm 10.9 GM build number?

2013-10-22 Thread Robert Martin
13A603 is the last GM seed I downloaded… On Oct 22, 2013, at 3:21 PM, Jens Alfke wrote: > Can someone who’s installed the public release of Mavericks reply with the > build number (e.g. from the About This Mac panel)? I’m running the GM seed, > 13A598, and I’d like to make sure it’s the same

Re: Setting key equivalent for menus depending on window

2013-10-20 Thread Martin Hewitson
setKeyEquivalent:@"w"]; [closeTabMenuItem setKeyEquivalent:@""]; } } - (void) windowDidBecomeKey:(NSNotification *)notification { [self specialiseCloseMenu:YES]; } - (void) windowDidResignKey:(NSNotification *)notification { [self specialiseCloseMenu:NO]; } Thanks all for your he

Re: Setting key equivalent for menus depending on window

2013-10-20 Thread Martin Hewitson
ms, maybe searching by tag. Let’s see how far I get with that. Thanks! Martin > --Kyle Sluder > >> On Oct 19, 2013, at 1:28 PM, Andy Lee wrote: >> >> Uli and I both remembered the app delegate is checked *after* the >> window-related objects in the responder ch

Re: Setting key equivalent for menus depending on window

2013-10-19 Thread Martin Hewitson
On 19, Oct, 2013, at 08:59 pm, Michael Babin wrote: > On Oct 19, 2013, at 1:32 PM, Martin Hewitson > wrote: > >> I guess I didn’t understand correctly since my app delegate does not get >> asked to validate the Close menu item. So far the only thing that get’s >>

Re: Setting key equivalent for menus depending on window

2013-10-19 Thread Martin Hewitson
em: in each and every window in the app. I hope that’s not the case…. Martin On 19 Oct 2013, at 07:28 pm, Martin Hewitson wrote: > OK, so the idea is, > > + validateMenuItem in app delegate gets a first shot at setting the keyboard > shortcuts > + I override validateMenuItem

Re: Setting key equivalent for menus depending on window

2013-10-19 Thread Martin Hewitson
to all who replied. Cheers, Martin On 19, Oct, 2013, at 02:46 pm, Uli Kusterer wrote: > > On 19 Oct 2013, at 14:27, Andy Lee wrote: >> On Oct 19, 2013, at 6:58 AM, Martin Hewitson >> wrote: >>> Main Window with tabs: >>> close (cmd-shift-w) &g

Setting key equivalent for menus depending on window

2013-10-19 Thread Martin Hewitson
close tab (inactive, no keyboard shortcut) This is pretty much the way things work in Xcode. So, my question is, is there a smart way to do this, or do I need to implement -validateMenuItem: on every window in the app and set the keyboard shortcuts there? Thanks for any insight

Re: Correct usage of NSTextView and NSFindBar

2013-10-11 Thread Martin Hewitson
received, Martin 0 CoreFoundation 0x7fff8a09d41c __exceptionPreprocess + 172 1 libobjc.A.dylib 0x7fff8d24ce75 objc_exception_throw + 43 2 CoreFoundation 0x7fff8a09d2cc +[NSException

Re: How to get a "Normal" button in iOS 7/IB

2013-10-03 Thread Robert Martin
You presented a problem, and other members spent their precious time trying to help you solve it. Just take it or leave it, but thank them all the same. Your opinion of a framework is irrelevant, please stop wasting bandwidth. Rob On Oct 3, 2013, at 5:39 PM, Dave wrote: > > On 3 Oct 2013, a

Re: Confusion about NSWritingDirectionNatural

2013-09-26 Thread Martin Wierschin
27;s the latter, then I'd guess TextEdit's menu action is also changing the text alignment as a convenience. ~Martin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: Correct usage of NSTextView and NSFindBar

2013-09-20 Thread Martin Hewitson
urn [[self.textStorage layoutManagers][0] textContainers][0]; } Is there a better way to do all this? Many thanks, Martin On Sep 21, 2013, at 06:52 AM, Martin Hewitson wrote: > Ah, that's very useful information. I actually maintain multiple > NSTextStorage instances, one for each file th

Re: Correct usage of NSTextView and NSFindBar

2013-09-20 Thread Martin Hewitson
r that the string changed? Any way around that? Many thanks, Martin On Sep 20, 2013, at 07:37 PM, Kevin Perry wrote: > > On Sep 20, 2013, at 10:00 AM, Martin Hewitson > wrote: > >> Dear list, >> >> I have an editor app which presents a list of files that can

Correct usage of NSTextView and NSFindBar

2013-09-20 Thread Martin Hewitson
7; its state, or set the string it should search. Am I going about this all the wrong way? I thought this is one of those 'it just works' cases Many thanks, Martin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Static analyser grumbling

2013-08-23 Thread Robert Martin
If the context is created, and the init succeeds and returns a valid self, then you are leaking the context. Get rid of the 'else', since it causes the code to skip over the release. On Aug 23, 2013, at 7:27 AM, Kevin Meaney wrote: > Hi, > > I'm using ARC and using Mavdacted and DP5 but I do

NSToolbar's setShowsBaselineSeparator

2013-08-14 Thread Martin Hewitson
n this in my NSDocument's -windowControllerDidLoadNib: method. Has anyone else seen this behaviour and, better still, solved it? Is there a way to force the toolbar to redraw? Calling -display and/or -update on the window doesn't seem to do the trick. Many thanks, Martin ___

Algorithm for editor bookmarks

2013-08-13 Thread Martin Hewitson
another way one could go about this that doesn't involve text attachments? Any insights? Martin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at c

Re: when __bridge isn't required

2013-07-27 Thread Robert Martin
My take: __bridge means 'do not transfer the retain count of to the LHS'. If the RHS involves some kind of create or new, then you'll get a leak since ARC won't release it. __bridge_transfer means 'transfer the retain count of to the LHS'. If the RHS involves some kind of create or new, then

NSTableView - differences in click or arrow selection

2013-07-26 Thread Martin Hewitson
setSelectedTextAttributes -addAttribute:value:range (on textstorage) Anyone seen this before, or have any idea what can cause an NSTextView to scroll? Best wishes, Martin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reque

  1   2   3   4   5   6   7   8   9   >