Calling delegate methods and calling selectors
<p>I'm new to the concept of delegates and selectors when used with notifications.  So my first question is, </p>

<p>1) Let's say you have a button that has a delegate that implements some <code>doWork</code> method.  If you want the same functionality that's in the method, is it 'ok' to just call that method?  I didn't know if that was considered good coding practices and/or if you should do that, or do something different in getting that type of functionality.  Like if that is ok architecture?</p>

<p>2) Similarly, with NSNotificationCenter, I see some code that posts a notification.  Then there's a <code>HandleSegmentedControl:(NSNotification *)notification</code> method.  If I want to manually have that functionality, but without pressing the segment control, is it 'ok' to just take that functionality out of that method and put it in a new method so it would look like this:</p>

<p>Original:</p>

<pre><code>- (void)HandleSegmentedControl:(NSNotification *)notification {
    NSDictionary *dict = [userInfo notification];
    // do stuff with the dictionary
}
</code></pre>

<p>New:</p>

<pre><code>- (void)HandleSegmentedControl:(NSNotification *)notification {
     NSDictionary *dict = [userInfo notification];
     [self newMethod:dict];
}

- (void)newMethod:(NSDictionary *)dict {
    // do stuff with the dictionary
}

- (void)myOtherMethodThatNeedsTheSameFunctionality {
     NSDictionary *dict = // create some dictionary
     [self newMethod:dict];
}
</code></pre>

<p>Sorry if these are basic questions.  I'm not sure what the best practices are for things like this and wanted to start the right way.  Thanks.</p>
