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.
>
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
, 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
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
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
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
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
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
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
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
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
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
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
There are a couple of options I have used..
1.) User your mac's local web server.
2.) MAMP which includes a full Web Server with mySQL.
http://www.mamp.info/en/index.html. I use this later a lot for creating and
testing custom backend services and client calls locally.
Scott Andrew
On
t
On Aug 25, 2010, at 7:22 AM, Michael Ash wrote:
> On Tue, Aug 24, 2010 at 2:42 PM, Scott Andrew
> wrote:
>> I have a question that I have been researching but can't find an answer for.
>>
>> I have some iOS 3.2 code using NSOperation this doesn't work using
I have a question that I have been researching but can't find an answer for.
I have some iOS 3.2 code using NSOperation this doesn't work using NSOperation
but works using NSThread withe detatch thread in iOS4 with the desired effect.
My code is basically to create and generate pages for my page
You still need that timer. Especially for non 3.2. If you get your touchEnded
before your timer is reached it was just a tap.
Scott
Sent from my iPad
On Jun 6, 2010, at 8:54 AM, Alejandro Marcos Aragón
wrote:
> Hi Matt,
>
> Thanks for your answer. Still, I don't think that solves the pro
I believe the way to do this is to setup a timer on touchDown to fire once
after X number of seconds. Your touchUp and touchCancelled should kill the
timer if the timer is exists and is not invalidated. If you hit the timer you
are being held. When the timer is hit you restart the timer again fo
So i have an app that I want to use the curl up UIView animation transition in.
however when the iPad his held in either the upside down portrait or upside
down landscape (button on right) the transitions are backwards. All controls on
the views move however.
I did something similar for my IPhone combo box. See
http://newwavedigitalmedia.com/?p=79. The source is on GitHub as well at
http://github.com/scottandrew/NWPickerField.
Sent from my iPad
On May 23, 2010, at 12:32 PM, Alejandro Marcos Aragón
wrote:
> Hi everyone,
>
> I'm trying to reprod
Just a simple question. Do you have overlapping views going on? If you are
overlapping a sibling that is being told to redraw, you will get redraw every
time the sibling redraws..
Scott
On May 13, 2010, at 12:52 PM, Nick Zitzmann wrote:
> I've tried searching around but haven't found an answe
What about making the rect your view's actual bounds. Something like...
CGRect footerBounds = [footerView bounds];
CGRect footerRectInTable = [tableView convertRect:footerBounds
fromView:footerView];
[tableView scrollToRect:footerRectInTable animated:YES];
This should scroll to the footer view
I acutally think i May have found this one.. We had some racing conditions that
seems to have been reeking havoc in our heavily threaded code and the KVO we
are using..
Scott
On Apr 15, 2010, at 6:12 PM, Ken Thomases wrote:
> On Apr 15, 2010, at 11:03 AM,
> wrote:
>
>> Unfortunately i have
If you selected the "Also Move To Trash" option check the trash can, if it
hasn't been emptied.. This is where source control comes in handy. Even if its
using git to keep source control local in the project folder.
Scott
On Mar 14, 2010, at 6:57 AM, Marx Bievor wrote:
> Hi,
> I accidentally
I have made a new iPhone control I would like to share. it is
NWPickerField a new read only combo box like control for the iPhone.
Check out: http://newwavedigitalmedia.com/?p=79
Scott Andrew
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com
mmalc Crawford wrote:
On Sep 3, 2009, at 7:56 AM, Scott Andrew wrote:
As Cocoa documentation states all items returned from a message are
autoreleased unless otherwise stated in the documentation for the
API call.
The documentation emphatically does not state that.
The basic rules are
I think you need to create a subclass of NSButton that uses your cell.
Then use setAction and setDoubleAction.
Scott
On Sep 3, 2009, at 7:41 AM, Dave DeLong wrote:
Unfortunately, "setDoubleAction:" is not a method on NSCell or any
of its subclasses (except NSPathCell).
Really all the BWTo
"ar" is not a member of "d"i. allKeys creates an autoreleased NSArray
with the keys values retained in indexes. "ar" is placed in the auto
release pool when it is created in the allKeys call.
When you call [autorelease release] the items are freed when you since
the pool is released and fre
This is not a cocoa question and is a basic C question. The simple
solution is to keep a 2nd array of numbers already generated.
Sent from my iPhone
On Aug 5, 2009, at 3:44 AM, Mahaboob wrote:
I need to produce 15 random numbers between 1 to 16 without
repeating any
number. I used the cod
If x number of objects in your CSV file represent an object, then
parse it by hand and put the data into an object that it represents.
For example:
Scott Andrew, 40, Computer Programmer
These might get parsed into a contact class that has properties name,
age, profession. Then the
e and convert the value the parser:foundCharacters selector is
called on your delegate. NSString has an intValue call. I would
recommend doing some reading in the Apple documentation on the NSXML
classes.
Sctt
On Jul 26, 2009, at 8:49 AM, Scott Andrew wrote:
If this is on a Mac rea
If this is on a Mac read the documentation for NSXMLDocument. If this
is the iPhone check out TouchXML (http://code.google.com/p/touchcode/wiki/TouchXML
). Both have a low level XML parser as well.
Scott
On Jul 25, 2009, at 11:05 PM, Rick Schmidt wrote:
Hi I am trying to extract the value in
This all depends on the type of app you are. There are a couple of non
3.0 examples that are good.
Rolando uses to show the number of
Rolandos are left to be saved, if you are interrupted mid level.
Skype shows then number of open conversations.
These are two of the non-push non-apple example
There is no difference between initing them in initWithFrame and
awakeFromNib. You would release them in the same location. if they
need to be around for the life time of the view then release them
dealloc. If not call release before you leave awakeFromNib...
Scott Andrew
On Jul 18, 2009
And works very well. I use it when traveling oversees.. Great for
making calls from the hotel and attending meetings.
Scott
On Jul 17, 2009, at 5:29 PM, Alex Kac wrote:
Only via the cell network. Skype exists now on the iPhone platform
on the App store. Via Wifi.
-- CEO WebIS
Sent from my
or memcpy to the location of the first field.
NSData is nice but i still think most memory management things (like
creating and dealing with buffers) are better in C then thrown into an
NSData if needed.. I generally don't use NSData as 1st class citizen
for generating buffers.
Sco
I was going to recommend 0xED is a good one too. Very fast and he
appears to be using a custom view of somesort.
Scott
On Jul 2, 2009, at 10:21 AM, Jean-Daniel Dupas wrote:
I've created a simple application with an NSTableView. I have
written a delegate for this table,
numberOfRowsInTable
I had this problem but it had to do with calculating the height for
the row and returning a float value. When i made sure i returned an
int this went away. Not sure if you doing that.
Scott
On Jul 2, 2009, at 7:51 AM, Chris Carson wrote:
Hello,
I've created a simple application with an
Have you looked at a couple of frameworks that already do this? The
two i can think of fare. BWToolkit and HMBlkAppKit. Source is
available for both.
Scott
On Jun 16, 2009, at 9:40 PM, Sumin Kim wrote:
That's not part of the scroller. Assuming you're working with
NSTableView,
this
Duh.. Should read the code that says "intValue" mind went to
assignment and didnt finish reading the lines.
Scott
On Jun 12, 2009, at 11:21 AM, Ken Thomases wrote:
On Jun 12, 2009, at 4:54 AM, Alfonso Ortega wrote:
I'm trying to parse a bit of html and use it to initialize an
object. I ha
A couple of things:
You are not retaining your values after retrieved (slot, svn, prn,
clock, block). These are auto released and will be released the the
next time the pool is cleaned up. (assuming you are not using garbage
collection). Not sure what your class is subclassed from, but if
window was the
problem, see my other message. Thanks anyway!
Best regards,
Frederik Slijkerman
Scott Andrew wrote:
Make sure your C function calls NSApplicationLoad() this is needed
to initialize Cocoa (including Cocoa runloops) from Carbon. Also
make sure you setup your autorelease pool i
Make sure your C function calls NSApplicationLoad() this is needed to
initialize Cocoa (including Cocoa runloops) from Carbon. Also make
sure you setup your autorelease pool in you plug-in's main entry
function.
The plug-in I wrote had all objective C except the startup code.
Scott A
One other thing to keep things simple.. Take all common functionality
and put it into a base view controller class. Then subclass from there
for any new controls, functionality, setup, etc.
Scott
On Jun 10, 2009, at 7:40 AM, Stephen Blinkhorn wrote:
On 9 Jun 2009, at 22:44, Quincey Morris
entifier rather than the position of the tab, in case you
decide to rearrange the tabs later.
--Andy
On Jun 7, 2009, at 9:36 PM, Scott Andrew wrote:
Why not use unique identifiers for each tab item? Each
NSTabViewItem has an identifier value. Using that and some defines
you can use do the
Why not use unique identifiers for each tab item? Each NSTabViewItem
has an identifier value. Using that and some defines you can use do
the following:
#define GENERAL_TAB 1
#define FONT_TAB 2
NSTabViewItem* tabViewItem = [tabView selectedTabViewItem];
switch([tabViewItem identifier])
{
Chalk this up to me having two copies of the project around and having
one of those moments..
Scott
On Jun 7, 2009, at 9:47 AM, Keary Suska wrote:
On Jun 7, 2009, at 9:54 AM, Scott Andrew wrote:
This may sound like a newbie questions but never had this issue
before.. I am trying to add
notification based on what was actually
selected.
I am now just curious about the NSOutlineView and the tag field. I
couldn't find anything that said you couldn't tag a outline or table
view control.
Scott Andrew
___
Cocoa-dev mailing list
Its not possible to do.. Its recommended that you don't put text on
your application and document icons.
Scott
On Jun 2, 2009, at 7:27 PM, Richard Holliday wrote:
Hi,
The new icon icns file for my cocoa application (10.4 +) has text
on it
which needs to change based on the machine locale
Actually. That makes it alot simpler. There is some selection and
addition logic but that should be simple enough.. Like i said i am
just over thinking it.
Scott Andrew
On May 25, 2009, at 8:42 PM, Steve Steinitz wrote:
Hi Scott
On 25/5/09, cocoa-dev-requ...@lists.apple.com wrote:
I am
erved-here.com/2008/05/13/nstreecontroller-and-core-data-sorted/
However, it takes route 2 on your list; the entities have "children"
and "parent" relationships.
Shlok Datye
Coding Turtle
http://codingturtle.com
On 25.05.2009, at 17:38, Scott Andrew wrote:
I am working
am leaning
towards 1 and 3. I would like to keep this model due to the fact that
it represents the real data. I may also be over thinking this a bit..
Any advice would be appreciated.
Scott Andrew
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Solved.. Due to the way the data is modeled using a data sorce
delegate is the best way to go.
On Mar 25, 2009, at 10:59 PM, Scott Andrew wrote:
I have a question, may know the answer already. I am looking at
using core data to store the project for my application I am
starting. I want a
I have a question, may know the answer already. I am looking at using
core data to store the project for my application I am starting. I
want a categorized NSOutlineView that has categories and then children
under. The categories just describe the nodes underneath it. They do
not not necess
Not up for the menu item route. I am looking at just changing the
background and shape slightly or the whole menu to match my UI.
Scott
On Jan 14, 2009, at 1:16 PM, I. Savant wrote:
On Wed, Jan 14, 2009 at 4:14 PM, Scott Andrew
wrote:
Is there any good way to custom draw a menu? Or is the
Is there any good way to custom draw a menu? Or is the old carbon
'mdef', like the star menu sample, the only way? And will it break in
10.6?
Scott
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderat
Personally I would say Objective-C. Its not that difficult of a
language to learn. If you have learned C++ and C, Objective C is easy
enough to learn. I just trained and mentored some window's engineers
on an Objective-C project, they had C#, C++ and C expreience. Once
they got through the
I think the best method to create from a file is
imageWithContentsOfURL..
CIImage* image = [CIImage imageWithContentsOfURL:[NSURL
urlWithPath:somePath]];
Scott
On Dec 21, 2008, at 7:50 AM, Alex.Wang wrote:
Hi everyone.
As the topic mentioned, I wanted to use a method to create a CIImage
Depending on you neeeds you can use cStringUsingEncoding: or if you
are ok using UTF8 encoded strings -UTF8String. The NSString
documentation clearly states this.
Scott
On Nov 27, 2008, at 11:48 AM, Luca Ciciriello wrote:
Hi All.Recently I've installed the new Xcode 3.1.2 and I've removed
I am looking at using a layered back OpenGL view for my core video
rendering. I am using a layered back view so that i can put controls
on top of my video.
How well does a layered back OpenGL view work on Macbooks and Mini's
with the integrated Intel chipsets. I noticed, from the LayeredOpe
:
[NSValue valueWithPoint:(pt)]];
This should work. I believe the NSValue will resolve to the NSPoint in
runtime.
Scott Andrew
On Oct 15, 2008, at 2:15 PM, DKJ wrote:
I've written a subclass of NSView. It calls a method its delegate
can implement to detect mouse clicks. I've put
What about using #pragma once at the top of the header file? The other
solution is to move the functions to a C file and move just the
function definitions to header files. I prefer the second for
readability. I usually have a utils.c and a utils.h. I'm not a big fan
of function implementat
. Help.. I
have everything working but the font and size. It also seems that the
flags aren't doing much. I have compared this to the output of a 3gp
track copied into a QT movie and they look the same.
Thank you,
Scott Andrew
___
Cocoa-dev
and couldn't find any help. Are there any tricks to
having the data model file (.mom) exist in the private framework and
not in the application's resources? We would like the data class to be
used across applications by just including the framework.
Sc
I have a memory management question. I was looking at the QCTV example
on from the quicktime site. It has some code that does the following:
ICMCompressionSessionOptionsRef options;
..
Do some work
..
return (ICMCompressionSessionOptionsRef)[(id)options autorelease];
Can you do this with Co
I believe Image IO isn't PSD layer aware. However the API is Tiff
layer aware.
Scott
On Jun 14, 2008, at 11:41 PM, Mike Abdullah wrote:
As far as I am aware, Cocoa only supports drawing of PSD images; you
can't access the individual layers. To do any more, you probably
have to drop down t
For a window:
If you are registered as the delegate you can handle the
windowWillResize:toSize: call to get called just before the reisize.
Or, If you want the message after the resize, you can handle the
windowDidResize: call.
For a view:
You can register to receive the NSViewFrameDidCh
++, I am also a fan of m_, but it's just not
appropriate for Cocoa since it basically means you're fighting
against the frameworks.
Scott Andrew wrote:
See i still use m_xxx. Alot of it is just old habit from C++ land.
But it really stands out to me m_ tells me its a member. We ar
See i still use m_xxx. Alot of it is just old habit from C++ land. But
it really stands out to me m_ tells me its a member. We are also
converting a lot non-mac programmers to mac so I think for them it
makes the code a bit easier to read. I don't use the how hungarian
(lpcstr for consant s
I have a question I have written a wrapper class around
FSPathCopyObject. I have a question about FSCopyObject however. I have
several files i want to copy one after another.. The only way i seemed
to have found to do this (and maybe its the right way) is to create a
new fileOperationRef fo
70 matches
Mail list logo