Re: Swift function overloading - invoking func with specific parameter (in place of Any parameter) on passing Any object

2019-10-28 Thread Andrew Thompson via Cocoa-dev
Person share nothing in common I would avoid overloading here and just write displayPerson etc, but I’m trying to answer your question and not redesign your whole solution. Give it some thought. Andrew >> On Oct 28, 2019, at 1:03 AM, Devarshi Kulshreshtha >> wrote: >  >

Re: Swift function overloading - invoking func with specific parameter (in place of Any parameter) on passing Any object

2019-10-27 Thread Andrew Thompson via Cocoa-dev
otocol. Andrew ___ 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:

Changing NSUserNotificationAlertStyle

2017-09-01 Thread Andrew Keller
two apps to communicate? For example, I see that XPC services aren’t allowed to present UIs (not sure if that extends to NSUserNotification). Thanks, - Andrew Keller ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Times in other cities

2017-05-15 Thread Andrew Thompson
Safer. Andrew. > On May 15, 2017, at 9:17 AM, Eric E. Dolecki wrote: > > Europe/London = BST though, correct? > > > > > >> On Mon, May 15, 2017 at 9:06 AM Andrew Thompson wrote: >> >> >> > On May 15, 2017, at 8:50 AM, Eric E. Dolecki wro

Re: Times in other cities

2017-05-15 Thread Andrew Thompson
#x27;ll automatically get support for daylight savings (summertime) 3. More readable in code Andrew ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderator

Re: Launch, connect, communicate

2016-08-19 Thread Andrew Keller
Am 16.08.2016 um 8:35 vorm. schrieb Jens Alfke : > On Aug 15, 2016, at 7:26 PM, Andrew Keller <mailto:and...@kellerfarm.com>> wrote: >> >> 1. If the main Plot app is _not_ running in the current Aqua session, then >> launch a new copy in the current Aqua sess

Launch, connect, communicate

2016-08-15 Thread Andrew Keller
d in being App Store compliant. I don’t know if this will make it there, but being App Store compliant is also something I need to learn, so I figure I may as well shoot for it. Any ideas? Or, are there any other mailing lists that may be more closely related to this topic? Thanks, - Andrew Ke

Re: NSImage drawInRect deadlock

2016-08-10 Thread Andrew Keller
Am 10.08.2016 um 2:48 vorm. schrieb Quincey Morris : > On Aug 9, 2016, at 20:47 , Andrew Keller <mailto:and...@kellerfarm.com>> wrote: >> >> 2. When utilizing Mike’s approach to limiting the number of parallel tasks >> down to, say, 1-8, I have been completely un

Re: NSImage drawInRect deadlock

2016-08-09 Thread Andrew Keller
Am 09.08.2016 um 7:38 nachm. schrieb Andrew Keller : > Am 09.08.2016 um 3:59 nachm. schrieb Kyle Sluder : >> On Tue, Aug 9, 2016, at 07:38 AM, Andrew Keller wrote: >> >>> I was under the impression from the docs that macOS >>> handles the thread pool “automatic

Re: NSImage drawInRect deadlock

2016-08-09 Thread Andrew Keller
Am 09.08.2016 um 3:59 nachm. schrieb Kyle Sluder : > On Tue, Aug 9, 2016, at 07:38 AM, Andrew Keller wrote: > >> I was under the impression from the docs that macOS >> handles the thread pool “automatically”. > > Mike Ash did a good job explaining why this isn’t as “a

Re: NSImage drawInRect deadlock

2016-08-09 Thread Andrew Keller
ot >> thread-safe. > > I wouldn’t jump immediately to thread-unsafety. It’s possible that > Andrew is simply exhausting the thread pool. > > Andrew, are you doing anything to limit the amount of decode operations > you’re putting on the global queue? Not presently. Under nor

NSImage drawInRect deadlock

2016-08-08 Thread Andrew Keller
serially, or is there something I’m doing wrong? Thanks, - Andrew Keller ___ 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

NSCollectionViewItem lifecycle

2016-08-03 Thread Andrew Keller
views are also never deallocated. Not really knowing how NSCollectionView works under the hood, I’m unsure of the next step to troubleshoot this. Any ideas? On a related note, what is the expected lifecycle of an NSCollectionViewItem object? Thanks, - Andrew Keller

Human-understandable process name

2015-02-13 Thread Andrew Keller
process in question is a helper app with a different name. Is this ability replicable in third party applications? Thanks, - Andrew Keller ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Modifying row rect indent in NSOutlineView

2015-01-29 Thread Andrew White
On 30/01/2015 16:04, Quincey Morris wrote: On Jan 29, 2015, at 20:45 , Andrew White mailto:andrew.wh...@audinate.com>> wrote: I tried subclassing NSOutlineView and catching frameOutlineOfCellAtRow, adding to theRect.origin.x and subtracting from theRect.size.width. This didn't see

Modifying row rect indent in NSOutlineView

2015-01-29 Thread Andrew White
han always indentationPerLevel ? ) Thanks -- Andrew ___ 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/U

Re: Machine sleep & wake notifications in a daemon

2015-01-12 Thread Andrew Keller
On Jan 8, 2015, at 7:00 PM, Andrew Keller wrote: > On Jan 8, 2015, at 6:11 PM, Greg Parker wrote: > >> On Jan 8, 2015, at 2:54 PM, Andrew Keller wrote: >> >>> On Jan 8, 2015, at 5:20 PM, Ken Thomases wrote: >>> >>>> On Jan 8, 2015, at 4:03 PM

Re: Machine sleep & wake notifications in a daemon

2015-01-08 Thread Andrew Keller
On Jan 8, 2015, at 6:11 PM, Greg Parker wrote: > On Jan 8, 2015, at 2:54 PM, Andrew Keller wrote: > >> On Jan 8, 2015, at 5:20 PM, Ken Thomases wrote: >> >>> On Jan 8, 2015, at 4:03 PM, Andrew Keller wrote: >>> >>>> I would like to receive m

Re: Machine sleep & wake notifications in a daemon

2015-01-08 Thread Andrew Keller
On Jan 8, 2015, at 5:20 PM, Ken Thomases wrote: > On Jan 8, 2015, at 4:03 PM, Andrew Keller wrote: > >> I would like to receive machine sleep and wake notifications in my daemon. >> In my Cocoa GUI application, I was able to easily follow the sample code >> und

Machine sleep & wake notifications in a daemon

2015-01-08 Thread Andrew Keller
a GUI application. Is it possible to have a Cocoa-style event queue in a daemon, or is there another way to receive machine sleep and wake notifications from the OS in a daemon? Thanks, - Andrew Keller ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Database Access and Swift? (ODBC, native libraries)

2014-09-21 Thread Andrew Satori
Well folks, it's me again. Your slightly off kilter and sometimes obsessed with database stuff developer... With the upcoming migration to Swift as the language of choice for OS X development, there is a decided lack of tools for getting from Cocoa to the RDBMS' of the world, and unfortunately

Re: iOS 8 beta 4 messes with my TextView

2014-07-29 Thread Scott Andrew
You can also change the constraint. It sounds like you vs auto-layout. Sent from my iPhone > On Jul 29, 2014, at 8:06 AM, Kyle Sluder wrote: > >> On Jul 29, 2014, at 1:58 AM, "Gerriet M. Denkmann" >> wrote: >> >> Master Detail app, works fine in 7.1.2. >> The Detail View has a UITextView. >

Re: NSStrings to CStrings and hex encoding...

2014-06-24 Thread Andrew Satori
u > put TextEdit into plain text mode it still does the smart quotes. > > > On Tue, Jun 24, 2014 at 9:15 PM, Andrew Satori wrote: > Alright, I am stumped so I am asking for help (and it is annoying me because > I am 100% certain that the answer will be stupid simple). > &

NSStrings to CStrings and hex encoding...

2014-06-24 Thread Andrew Satori
Alright, I am stumped so I am asking for help (and it is annoying me because I am 100% certain that the answer will be stupid simple). I have a bit of code (old code I might add) that I am updating to ARC and other such modern features. Unfortunately, I have run into a little snag. The code c

Re: Class name as NSString and problem with NSLog?

2014-03-06 Thread Scott Andrew
Even further you can get the current command by using NSStringFromSelector(_cmd); _cmd is the current selector. You can also use NSLog(@“%s”, _PRETTY_FUNCTION”) which will give you the class name and current selector. Do a google search also for NSLog replacements there are ones that do a lot

Re: Crash in -URLByResolvingBookmarkData::::: in sandboxed app

2014-02-27 Thread Andrew Madsen
you’re intending to sell the app on the app store, the only true fix is probably to require 10.9. -Andrew Madsen On Feb 19, 2014, at 8:03 AM, Markus Spoettl wrote: > Hi, > > I keep getting a crash in my sandboxed app when it terminates. It is not > 100% reproducible, but it happens

Re: Paged UIScrollview is acting strange in iOS7?

2014-02-17 Thread Scott Andrew
, at 5:31 PM, Scott Andrew wrote: > I have some old gallery code that uses UIScrollView in a paged mode. We are > trying to port the code to iOS7 but when we are getting strange behavior. In > iOS7 we are constantly getting scrollViewDidScroll with weird offset of > negative o

Paged UIScrollview is acting strange in iOS7?

2014-02-17 Thread Scott Andrew
I have some old gallery code that uses UIScrollView in a paged mode. We are trying to port the code to iOS7 but when we are getting strange behavior. In iOS7 we are constantly getting scrollViewDidScroll with weird offset of negative or some large offset that has huge exponents. Is there a known

Re: Direct NSSpeechSynthesizer output to buffer instead of file?

2014-02-06 Thread Andrew Thompson
If you post to the speech-dev list you'll likely get a more detailed reply as Apple's TTS engineers hang out there. I believe it is possible to hook up the synthesizer as an Audio Unit and capture the output that way. A more basic approach would be to use the venerable UNIX mkfifo function to

NSTextTable with only certain text selectabled

2013-12-22 Thread Andrew Arrow
How do I make a drag select on a NSTextView with an NSAttributedString that contains a 2 column NSTextTable, only select the text in the 1st column? You can see a video of the mac app skype doing this here: https://dl.dropboxusercontent.com/u/2510380/skype.mov Thanks! ___

Re: URLByResolvingBookmarkData: crashes on 10.8

2013-11-11 Thread Andrew Madsen
On Nov 7, 2013, at 10:10 AM, Mike Abdullah wrote: > Ah, that’s a shame. > > Come to think of it, there’s a limit on how many security-scoped bookmarks > you’re allowed to access at once. I wonder, does the problem seem to happen > around a particular, fairly predictable, number of bookmarks?

Re: URLByResolvingBookmarkData: crashes on 10.8

2013-11-07 Thread Andrew Madsen
ur code > from elsewhere that’s non-ARC? We saw your blog post about this. We’re always explicitly initializing our NSError parameter to nil (as we always do), but this is ARC code, so it should be set to nil anyway. For whatever it’s worth, I also had no prob

Re: Core Data with ODBC databases?

2013-10-17 Thread Andrew Satori
On Oct 17, 2013, at 11:45 AM, Scott Ribe wrote: > >> I think there’s a huge need for something like this in SMB. > > Agreed. Probably assuming always-on connectivity, since people usually have > 3G or 4G. Do a decent job with managing bandwidth demands and controlling the > number of request

Re: Core Data with ODBC databases?

2013-10-17 Thread Andrew Satori
On Oct 17, 2013, at 11:03 AM, Flavio Donadio wrote: > Dru, > > > I am not sure if I understand you, but here it goes! > >> Actually, there is no reason CoreData can't be used in this manner, but >> there are things that will have to be dealt with outside of CoreData. How >> do you deal wit

Re: Core Data with ODBC databases?

2013-10-17 Thread Andrew Satori
Actually, there is no reason CoreData can't be used in this manner, but there are things that will have to be dealt with outside of CoreData. How do you deal with two people making changes to the same record concurrently as an example ( this is not an issue exclusive to CoreData, but multi-user

Re: Core Data with ODBC databases?

2013-10-16 Thread Andrew Satori
Well... This is why I LOVE Objective-C and Cocoa for this work. What follows is a little complex, and honestly still in very raw form as I've had limited time to really finish all the work for something that is a line of business bit of work, but wasn't really built to be made generally availa

Re: Core Data with ODBC databases?

2013-10-16 Thread Andrew Satori
, and I push it hard. But at the end of the day, it is an abstraction layer, and adding another in the form and an ORM just isn't a great idea (IMO) that factored into the demise of Enterprise Objects. Dru On Oct 16, 2013, at 9:56 AM, Jens Alfke wrote: > > On Oct 16, 2013, a

Re: Core Data with ODBC databases?

2013-10-16 Thread Andrew Satori
I'd like to take this a step further. CoreData is a really nice tool, but CoreData really isn't the tool for using a multi-user RDMS since it skips over some of the frequently forgotten concepts like locking and data concurrency. Most of the time when people talk about CoreData and ODBC, they

Re: "Introducing ioscomponents.com"

2013-08-28 Thread Andrew Satori
And do yourself a huge favor. Repeat to yourself every morning (and anytime you get frustrated), "Developers are friends not food". I use that analogy intentionally, you are selling to the most critical market you will ever sell to. Not just other developers, which is bad enough, but Apple/iO

Re: dev site down time is ridiculous

2013-07-24 Thread Andrew Satori
I hear Microsoft pays for apps in their app stores On Jul 24, 2013, at 1:26 PM, Hunter Hillegas wrote: > I don’t think you’re the only one. I’m upset too and not being able to > provision stuff is really messing with my business… I’m trying to find > constructive things to do instead of c

FW: Andrew James

2013-06-17 Thread Andrew James
hello! http://www.airinfo.be/uf/hpnl/ffrs/fhejn.html Andrew James ___ 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

Re: Wanted: new owner for Mac apps

2013-05-07 Thread Scott Andrew
Hmmm. Wonder how long they'll last. Can you do me a bit of research. See if you can find reviews on these. The read me in the link has their names. See what people think of em. Sent from my iPhone On May 7, 2013, at 6:54 AM, Steven Degutis wrote: > These ones: https://github.com/sdegutis/grs

Re: book for n00b

2013-02-03 Thread Andrew Coleman
If author is not an issue, I find "Programming in Objective-C" written by Stephen G. Kochan to be a fantastic book, covering tons of topics, and wouldn't be too tough for a novice to dive into. Hope this helps!! Thanks, Andrew Coleman On Jan 16, 2013, at 13:14, Scott Ribe w

Re: "New" busy cursor in the Finder

2012-12-20 Thread Andrew Thompson
I have TextWrangler installed but not BBedit. In any case this was definitely showing up in the Finder, though given it was the Open With menu item u guess it could be Launch Services showing it. On Dec 19, 2012, at 11:55 PM, John Pannell wrote: > I noticed the appearance of this cursor recen

Size limit on .icns files containing 1024x1024 version in 10.5?

2012-10-07 Thread Andrew Madsen
omit a retina ready application icon until I drop support for 10.5. Thanks, Andrew Madsen ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-de

Re: Implementing Manual KVO For Bitfields Set in Atomic Operations

2012-08-22 Thread Scott A Andrew
Why not have an update flags function and a set of booleans that represent the flags. @interface someInterface { BOOL _isFoo; BOOL _isBar; } @property (nonatomic, readonly, assign) BOOL isFoo; @property (nonatomic, readonly, assign) BOOL isBar; -(void) updateFlags:(int)bits; @en

Re: Implementing Manual KVO For Bitfields Set in Atomic Operations

2012-08-21 Thread Scott A Andrew
Check out http://newwavedigitalmedia.com/blog/?p=132 I'll fix the image issues shortly. But basically it shows how to setup KVO for calculated values. So you could create KVO for each state using keyPathsForValuesAffecting then implement getters and setters. So each state could be handled via

10.8 32bit ioctl

2012-08-11 Thread Scott A Andrew
I am needing to write an native extension for air and Flash builder that needs to be 32bit. However when i call ioctl in a 32 bit application it fails with -1. If i flip the app to 64 bit it works. I need a bit of help understanding why 32bit ioctl doesn't work. My questions, maybe someone at

Re: Sizing NSTableView to data

2012-07-18 Thread Andrew Satori
Unfortunately, the sizeToFit method seems to create and infinite loop condition. trying to sort out WHY it happens. On Jul 18, 2012, at 1:13 AM, Kyle Sluder wrote: > On Thu, Jun 28, 2012, at 04:42 PM, Maury Markowitz wrote: >> I am working on the ODBCkit's Query Tool to make it work across

Macbook Pro retina display and simulator question.

2012-06-11 Thread Scott A Andrew
How does the new 15" retina display handle the iOS simulator. Does the simulator work in pixels or points. Is it going to be just like working a 15" today since text is in points and 12 pt is really 24? Or will it only take 1024x768 + bezel pixels? The one reason i have a 17" is that the simula

Re: @synchronized crashing with ARC

2012-05-31 Thread Scott A Andrew
My guess is that you are crashing because kMyVLFContext is not an objective C object. According to the Apple documentation (https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjectiveC/Chapters/ocThreading.html#//apple_ref/doc/uid/TP30001163-CH19-SW1): The @synchronized() d

Sandbox Frustrations - A Good Idea handicapped by poor docs

2012-04-27 Thread Andrew Satori
Don't get me wrong, I think the sandbox is a good idea in the long run, but at the moment, it seems to be incomplete at best. For me, I am running into an issue where I need access to ipc-sysv-shm. Apparently this is restricted. There is no entitlement to allow it. There is no documentation

Re: Opening a gap in NSTableView during drag and drop

2012-04-14 Thread Andrew Madsen
On Apr 14, 2012, at 1:31 AM, Quincey Morris wrote: > On Apr 13, 2012, at 08:02 , Andrew Madsen wrote: > >> I've got a simple, single-column, view-based NSTableView with items in it >> that can be dragged to reorder them. During drag and drop, I'd like to make >

Opening a gap in NSTableView during drag and drop

2012-04-13 Thread Andrew Madsen
ased table view if doing so helped accomplish this. Thanks, Andrew ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.c

Re: Question about block, ARC, self, and reference counting.

2012-04-12 Thread Scott Andrew
Cool. Thank you that was sort of my thought. Then went and watched the WWDC video and went into a bit of a panic. Scott On Apr 12, 2012, at 11:18 AM, Ken Thomases wrote: > On Apr 12, 2012, at 12:04 PM, Scott Andrew wrote: > >> I have a question about retain cycles with AR

Question about block, ARC, self, and reference counting.

2012-04-12 Thread Scott Andrew
I have a question about retain cycles with ARC and blocks. I have the following code: __weak MyViewController* controller = self; [UIView animateWithDuration:.25 animations:^{ controller.alpha = 0; } completion:^(BOOL finsihed) { [controller showSta

Re: iOS drawer-style interaction

2012-04-06 Thread Scott Andrew
What about using a UIPanGestureRecognizer? I didn't see anything in the docs that says a swipe get's continuous feedback. A UIPanGestureRecognizer gives continuous feedback during the drag. Scott On Apr 5, 2012, at 11:45 PM, Rick Mann wrote: > I'm trying to implement a drawer of sorts. Initial

Re: ARC not ready for primetime?

2012-03-25 Thread Scott Andrew
ory? > On Sat, Mar 24, 2012 at 4:17 AM, Scott Andrew > wrote: > >> I seem to have hit a few limitations with ARC. >> >> 1.) Subclasses of CALayer are not being fully released which causes my >> view controller to remain around. There is still some small b

ARC not ready for primetime?

2012-03-24 Thread Scott Andrew
I seem to have hit a few limitations with ARC. 1.) Subclasses of CALayer are not being fully released which causes my view controller to remain around. There is still some small bit of memory being left behind. Even if I do the following simple code: -(void) viewDidLoad { [super viewDidL

GLKit's GLKBaseEffect leaking?

2012-03-23 Thread Scott Andrew
Has anyone been noticing that GLKit's base effect is leaking when calling prepareToDraw? There are repeated leaks in GLKShaderBlockNode. It seems that this may be new to 5.1 SDK. I could have sworn i did a check with 5.0. ___ Cocoa-dev mailing list (Co

NSTableView tooltip with a view based table?

2012-02-01 Thread Andrew
quot;Table Cell View" it is not displayed. I've also tried just binding the tooltip of an NSTextView in the row view, and still have had no luck. What is the correct way to show a tooltip for a row in a view based NSTableView? Thank you, Andrew _

Re: Open a new terminal tab or window from a Cocoa app at a certain directory without using NSAppleScript?

2012-01-26 Thread Andrew
TerminalSettingsSet *settings = [termApp startupSettings]; TerminalTab *newTab = [termApp doScript:cmd in:window]; [newTab setCurrentSettings:settings]; [newTab setSelected:YES]; [termApp activate]; } On Thu, Jan 26, 2012 at 11:02 AM, Andrew wrote: > > Well, I found this: > http://co

Re: Open a new terminal tab or window from a Cocoa app at a certain directory without using NSAppleScript?

2012-01-26 Thread Andrew
and have it open a new tab instead of window. On Thu, Jan 26, 2012 at 10:13 AM, Andrew wrote: > I would like to perform the same logic as the "New Terminal Tab at Folder" > service in Finder in my Cocoa app. The only code I found via Google is all > using AppleScript to ope

Open a new terminal tab or window from a Cocoa app at a certain directory without using NSAppleScript?

2012-01-26 Thread Andrew
to open a new tab as opposed to a window 2. not have to run a program 3. it does not open the default terminal "theme" Thanks, Andrew ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator com

Re: NSTask terminates when NSApplication exits

2012-01-18 Thread Andrew
12:55 PM, Scott Ribe wrote: > On Jan 18, 2012, at 11:59 AM, Andrew wrote: > >> I can probably find out the answer by trying different things, but I'd >> like to get a better insight for what is going on and why the child >> task is terminating. > > You may want

NSTask terminates when NSApplication exits

2012-01-18 Thread Andrew
I am trying to write a program that maintains different installs of another program including launching the program. To do so, I am using NSTask. Now when I quit my cocoa app. the NSTask app dies. The task that the NSTask is running is a Java program, not sure if that makes a difference. According

Re: Is slowing down bindings updates possible?

2012-01-14 Thread Andrew
ote: > >> Hi Andrew, >> >> On Jan 13, 2012, at 6:57 , Andrew wrote: >> >>> The result of this is that the UI updates really frequently and the >>> estimated time to complete and the download rate jump around a lot. I >>> would love it if I c

Is slowing down bindings updates possible?

2012-01-12 Thread Andrew
ld do something like that and use timer, but it would be a lot of messy code. I could also just delay updating the _bytesDownloaded on a queue. Or a third idea is to cache the estimated calc time and rate and then only recalculate the value at most once per second. Any other brighter ideas? Thoughts

Animation

2012-01-01 Thread Andrew Coad
Can anyone advise on any tools/techniques for producing animations? I have a number of drawings that I want to animate. Andrew Coad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Text system glitch - lines across text view

2011-12-28 Thread Andrew Hughes
the text, where it appears to be drawn twice and looks "bold" compared to the rest of the text, is still there. It is almost surely cause by some problem in the background-foreground pagination interaction because it doesn't happen when I test the program paginating foreground onl

Text system glitch - lines across text view

2011-12-25 Thread Andrew Hughes
he bug/issue typically occurs when I start hitting "return", which causes the pagination algorithm and layout system to kick in, leaving behind the lines and bold-looking text. It always clears if I scroll or click the mouse over it or highlight that area. Many thanks! Hopefully somebody can help

Re: Weird Core Data crash

2011-11-30 Thread Andrew Kinnie
hread based mocs for the fairly heavy lifting. Thanks again. Andrew On Nov 29, 2011, at 8:51 AM, Fritz Anderson wrote: > On 29 Nov 2011, at 7:21 AM, Andrew Kinnie wrote: > >> This method may be called from the main thread or from a background thread, >> but

Weird Core Data crash

2011-11-29 Thread Andrew Kinnie
ng performSelectorInBackground. One thing we considered was adding the strings to the set using copy rather than directly adding the string. However, as we have not been able to replicate the crash, we have no idea if this would solve whatever problem there is. An

Re: Private Method?

2011-11-09 Thread Andrew Thompson
Java, running with a byte code verifier and a strict security manager enabled does a reasonably through job of enforcing private methods at runtime. You can defeat it, but not typically with remotely loaded code such as applets. It's a continuum of design choices in languages. You're right that

Re: Core Data Xcode 4 question

2011-09-02 Thread Andrew Kinnie
1, 2011, at 11:19 PM, Steve Steinitz wrote: > Hi Andrew, > > I get this mailing list in digest form so hope I'm not too late to chime in > with what a wonderful tool > Jonathan “Wolf” Rentzsch has given to us and has continued to maintain over > the years. I never did u

Re: Core Data Xcode 4 question

2011-09-01 Thread Andrew Kinnie
Last I looked at mogenerator, it didn't support Xcode 4. On Sep 1, 2011, at 5:21 PM, Sean McBride wrote: > On Thu, 1 Sep 2011 16:19:07 -0400, Andrew Kinnie said: > >> I have a Core Data implementation, using generated subclasses of >> NSManagedObject for some of my

Re: Core Data Xcode 4 question

2011-09-01 Thread Andrew Kinnie
Thanks. Maybe I'll try that. On Sep 1, 2011, at 5:10 PM, Quincey Morris wrote: > On Sep 1, 2011, at 13:19 , Andrew Kinnie wrote: > >> I used Xcode 4 to generate the initial subclass, then added other business >> rules methods as needed. I noticed, however, that t

Core Data Xcode 4 question

2011-09-01 Thread Andrew Kinnie
the Generate Managed Object Subclass menu item would create them in the .h but not implement them in the .m? I ask because I am concerned that I am missing something about Core Data. Thanks in advance. Andrew PS: The method are the to-many relationship methods of the form: - (void

Re: Core Data to many relationship deletion causing exception - SOLVED?

2011-08-16 Thread Andrew Kinnie
_NSSet0 singleton object. Thanks On Aug 16, 2011, at 3:45 PM, Keary Suska wrote: > On Aug 16, 2011, at 12:18 PM, Andrew Kinnie wrote: > >> I have an iOS 4 + app, which is now being retrofitted to use Core Data. I >> have an Entity "Article" which has a to-many rela

Core Data to many relationship deletion causing exception

2011-08-16 Thread Andrew Kinnie
Greetings, I have an iOS 4 + app, which is now being retrofitted to use Core Data. I have an Entity "Article" which has a to-many relationship to another Entity "MediaResource" and I generated NSManagedObject subclasses for each. The relationship is called "media" and is set to be optional, a

Sandboxing and NSTask

2011-08-14 Thread Andrew Satori
Having spent the weekend trying to migrate to supporting sandboxing, I think I have hit a snag that may well be terminal. The situation: My application contains a bundle that embeds a set of programs (a local instance of the PostgreSQL RDMS). Outside of the sandbox, it properly creates the

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Andrew Thompson
But doesn't it seem entirely reasonable that apps signed by the same vendor (for example) be able to share files? I mean in a safe location perhaps with a limited quota of space? Cookies and client side storage in HTML 5 allow this (not exactly the same but still), but native apps have no optio

Re: Need help debugging this

2011-07-18 Thread Scott Andrew
As was pointed out below the CString doesn't support instance method string:. Crashing this in a debugger should give you call stack so you can trace who is doing the calling. You should also have a crash log that can be symbolized. But, if this is your code run it in the debugger and have it c

Re: Application Design

2011-06-01 Thread Andrew Thompson
I'll caution you as written that singleton is not be thread safe. Often you don't care, because you only have one thread or because creating 2 webservice clients may not be a problem for you. On Jun 1, 2011, at 3:54 AM, Dan Hopwood wrote: > Thanks Steve. For completeness - what's the proper

Re: encoding of file names

2011-05-26 Thread Andrew Thompson
> However, in practical terms, the indexable string elements are components, > not codepoints. > > It seems to me the single hardest thing to come to grips with when newly > approaching NSString is understanding that 'unichar's (and "characters" in > the sense of [characterAtIndex:]) *aren't*

Re: Vertical alignment in NSTextView

2011-05-03 Thread Andrew Glushchenko
Hello, Rimas You can change the inset of the NSTextContainer associated with the NSTextView for this purpose. See setTextContainerInset method of NSTextView. 2011/5/3 Rimas M. > Hello, > > I continue my fight with cocoa text system :)) At the moment I am loosing.. > > Now I am trying to impleme

Re: How to detect string encoding before reading a file in NSString?

2011-04-26 Thread Andrew Thompson
Another battle tested piece of code would be Mozilla's sniffer, if external libraries and it's license suit you. This document is out of date, bur explains the ideas. http://www.mozilla.org/projects/intl/detectorsrc.html On Apr 26, 2011, at 3:39 PM, John Pannell wrote: > Hi Laurent- > >

Re: UI Design on iPad

2011-04-21 Thread Scott Andrew
Don't give up on UIKit. You will find you can do alot with UIKit. I have used UIKit extensively for several large custom projects with great results. To see the UIKit used to its fullest look at: Disney Second Screen: Tron Edition - http://itunes.apple.com/us/app/disney-second-screen-tron/id426

Re: Getting NSScrollView to ignore scrolling

2011-02-20 Thread Andrew Shamel
Hurrah! It was as easy as this: - (void)scrollWheel:(NSEvent *)theEvent { [[self nextResponder] scrollWheel:theEvent]; } Thanks, y'all! — andy On Feb 19, 2011, at 4:48 PM, Quincey Morris wrote: > On Feb 19, 2011, at 16:25, Peter Lübke wrote: > >>> My question is this: how do I get t

Getting NSScrollView to ignore scrolling

2011-02-19 Thread Andrew Shamel
HI All, I have a NSTableView/NSScrollView setup that I've configured automatically to resize to contain the content of the table. This may sound silly, but I don't want scrolling behavior, but NSTableView seems to be designed to be inside a NSScrollView. My question is this: how do I get th

Quick Look Preview with Scrollbar

2011-02-13 Thread Andrew Madsen
I'm writing a Quick Look Plug-in to generate previews of my application's (Core Data) documents. I've got the generator working ok with one problem. If the document is large/long, and I return an preview that is say 5000 pixels high, Quick Look scales the preview image instead of putting it in a

RE: Drawing images on top of each other

2011-02-04 Thread Andrew Coad
>> You probably want either kCGBlendModeCopy That fixed it. Thanks. Kicking myself that I didn't see that blend mode... Andrew Coad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Drawing images on top of each other

2011-02-03 Thread Andrew Coad
w image? Apologies is this is a hopelessly 'newbie' question. Andrew Coad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Re: Initializing NSWindow with Carbon window

2011-01-31 Thread Andrew James
views. Cheers, --aj - Original Message From: Uli Kusterer To: Andrew James Cc: list-cocoa-dev Sent: Mon, January 31, 2011 1:39:21 AM Subject: Re: Initializing NSWindow with Carbon window On 30.01.2011, at 11:17, Andrew James wrote: > I have a legacy builder class that creates a Carbo

Re: Initializing NSWindow with Carbon window

2011-01-30 Thread Andrew James
k down from this and write my own class that does the controlling of Cocoa vs. Carbon windows. --aj - Original Message From: Graham Cox To: Andrew James Cc: list-cocoa-dev Sent: Sun, January 30, 2011 8:18:23 PM Subject: Re: Initializing NSWindow with Carbon window On 31/01/2011, at

Re: Initializing NSWindow with Carbon window

2011-01-30 Thread Andrew James
ike showWindow. Implementing a window delegate my also help. I've got options that I'm going to explore. Cheers, --aj ____ From: Graham Cox To: Andrew James Cc: list-cocoa-dev Sent: Sun, January 30, 2011 3:04:38 AM Subject: Re: Initializing NSWindow with Carb

Initializing NSWindow with Carbon window

2011-01-30 Thread Andrew James
I have a legacy builder class that creates a Carbon window and I want to initialize an NSWindow with this WindowRef. I have a method on the builder GetProduct() that hands out the WindowRef. If I use commands like the following WindowRef w = builder.GetProduct(); ShowWindow( w ); SelectWindo

RE: UIEvent timestamp clarification

2011-01-16 Thread Andrew Coad
Apologies, I didn't see Matt's reply despite searching several times. Problem solved, thanks. Andrew Coad > Date: Sun, 16 Jan 2011 19:36:39 -0800 > Subject: Re: UIEvent timestamp clarification > From: kyle.slu...@gmail.com > To: andrewc...@hotmail.com > CC: cocoa-de

RE: UIEvent timestamp clarification

2011-01-16 Thread Andrew Coad
Does anyone have a view on this? Andrew Coad > From: andrewc...@hotmail.com > To: cocoa-dev@lists.apple.com > Date: Wed, 12 Jan 2011 18:36:56 -0500 > Subject: UIEvent timestamp clarification > > > Reading through the docs, the approximate flow from a user touching an

UIEvent timestamp clarification

2011-01-12 Thread Andrew Coad
Reading through the docs, the approximate flow from a user touching an interface component (e.g. a button) to the touch event being processed by the application is: - User touches (e.g. a UIButton), a "touch" object is created and enqueued on the dispatch thread (main thread) - The touch obj

  1   2   3   4   5   6   7   8   >